memex-in commited on
Commit
cf1254b
·
verified ·
1 Parent(s): 01a0068

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +0 -33
Dockerfile CHANGED
@@ -1,33 +0,0 @@
1
- # Use the rootless Docker-in-Docker base image
2
- FROM docker:dind-rootless
3
-
4
- # Set the working directory inside the container
5
- WORKDIR /app
6
-
7
- # Copy the Nginx app's index.html and its Dockerfile (exdocker) into this container
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
20
- USER docker
21
-
22
- # Expose a port from this DinD container.
23
- # We'll map the inner Nginx container's port 80 to this port (e.g., 8080)
24
- # within the DinD container. Then, we can map this 8080 to the host.
25
- EXPOSE 8080
26
-
27
- # Set our custom start.sh script as the ENTRYPOINT
28
- # This ensures start.sh is the main process that gets executed
29
- ENTRYPOINT ["./start.sh"]
30
-
31
- # CMD can be left empty or provide default arguments to ENTRYPOINT if needed.
32
- # In this case, start.sh handles everything.
33
- CMD []