Spaces:
Runtime error
Runtime error
Commit
•
f8376de
1
Parent(s):
1faedaf
Update Dockerfile
Browse files- Dockerfile +4 -8
Dockerfile
CHANGED
@@ -1,15 +1,11 @@
|
|
1 |
-
|
|
|
2 |
|
3 |
-
#
|
4 |
-
RUN apk add --no-cache docker openrc
|
5 |
-
RUN rc-update add docker boot
|
6 |
-
|
7 |
-
# Set the working directory
|
8 |
WORKDIR /app
|
9 |
|
10 |
# Copy the entire context
|
11 |
COPY . .
|
12 |
|
13 |
# Start the Docker daemon and run the build
|
14 |
-
CMD dockerd & sleep 5 && docker build -f docker/Dockerfile -t your_image_name docker/
|
15 |
-
|
|
|
1 |
+
# Use Docker-in-Docker image
|
2 |
+
FROM docker:24-dind
|
3 |
|
4 |
+
# Set the working directory inside the container
|
|
|
|
|
|
|
|
|
5 |
WORKDIR /app
|
6 |
|
7 |
# Copy the entire context
|
8 |
COPY . .
|
9 |
|
10 |
# Start the Docker daemon and run the build
|
11 |
+
CMD ["sh", "-c", "dockerd-entrypoint.sh & sleep 5 && docker build -f docker/Dockerfile -t your_image_name docker/"]
|
|