Spaces:
Build error
Build error
Update Dockerfile
Browse files- 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
|