memex-in commited on
Commit
1fa864d
·
verified ·
1 Parent(s): f46a386

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -4
Dockerfile CHANGED
@@ -8,13 +8,13 @@ WORKDIR /app
8
  COPY index.html ./
9
  COPY exdocker ./
10
 
11
- # Copy the start.sh script and make it executable
 
 
12
  COPY start.sh ./
13
  RUN chmod +x ./start.sh
14
-
15
- # Switch to root user to install curl, as apk requires root privileges
16
- USER root
17
  RUN apk add --no-cache curl
 
18
  # Switch back to the default non-root user for dind-rootless (usually 'docker')
19
  # This is important for security and proper operation of the rootless daemon
20
  USER docker
 
8
  COPY index.html ./
9
  COPY exdocker ./
10
 
11
+ # Switch to root user to copy start.sh, make it executable, and install curl
12
+ # These operations require root privileges
13
+ USER root
14
  COPY start.sh ./
15
  RUN chmod +x ./start.sh
 
 
 
16
  RUN apk add --no-cache curl
17
+
18
  # Switch back to the default non-root user for dind-rootless (usually 'docker')
19
  # This is important for security and proper operation of the rootless daemon
20
  USER docker