memex-in commited on
Commit
6d31700
·
verified ·
1 Parent(s): b6cfdce

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -2
Dockerfile CHANGED
@@ -8,12 +8,12 @@ WORKDIR /app
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
 
8
  COPY index.html ./
9
  COPY exdocker ./
10
 
11
+ # Switch to root user to copy start.sh, make it executable, and install bash and 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 bash curl # Ensure bash is available for start.sh
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