BinaryONe commited on
Commit
6786cf8
·
1 Parent(s): 6eaf352
Files changed (1) hide show
  1. Dockerfile +3 -3
Dockerfile CHANGED
@@ -53,9 +53,9 @@ RUN ls -l /etc/ssh/ && \
53
  ls -l /app/ssh/
54
 
55
 
56
- # Create an admin user with the administrator group and full permissions
57
- RUN groupadd administrator && \
58
- useradd -m -s /bin/bash -G administrator,sudo admin && \
59
  echo 'admin:password' | chpasswd && \
60
  echo "%administrator ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers
61
 
 
53
  ls -l /app/ssh/
54
 
55
 
56
+ # Create administrator group and admin user with full permissions
57
+ RUN groupadd -f administrator && \
58
+ id -u admin >/dev/null 2>&1 || useradd -m -s /bin/bash -G administrator,sudo admin && \
59
  echo 'admin:password' | chpasswd && \
60
  echo "%administrator ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers
61