circulartext commited on
Commit
4c0e045
1 Parent(s): 4754470

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +0 -10
Dockerfile CHANGED
@@ -17,16 +17,6 @@ ARG USER_GROUP=user
17
  ENV USER_ID=$USER_ID \
18
  USER_GROUP=$USER_GROUP
19
 
20
- # Check if the user already exists
21
- RUN if [ -z "$USER_ID" ]; then \
22
- echo "User ID not provided. Using the default user ID 1000."; \
23
- USER_ID=1000; \
24
- fi && \
25
- if id "$USER_ID" >/dev/null 2>&1; then \
26
- echo "User with ID $USER_ID already exists."; \
27
- else \
28
- useradd -m -u "$USER_ID" -g "$USER_GROUP" user; \
29
- fi
30
 
31
  # Set appropriate permissions for the application directory
32
  RUN chown -R "$USER_ID":"$USER_GROUP" /app && chmod -R 755 /app
 
17
  ENV USER_ID=$USER_ID \
18
  USER_GROUP=$USER_GROUP
19
 
 
 
 
 
 
 
 
 
 
 
20
 
21
  # Set appropriate permissions for the application directory
22
  RUN chown -R "$USER_ID":"$USER_GROUP" /app && chmod -R 755 /app