SefyanKehail
commited on
Commit
·
404ed57
1
Parent(s):
c801811
hi
Browse files- Dockerfile +10 -6
Dockerfile
CHANGED
|
@@ -1,8 +1,12 @@
|
|
| 1 |
-
|
| 2 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3 |
|
| 4 |
-
# Install Docker CLI to use Docker commands
|
| 5 |
-
RUN apk add --no-cache docker-cli
|
| 6 |
|
| 7 |
-
# Display the base image size
|
| 8 |
-
RUN docker image inspect sefyankehail/accent-conversion:latest --format='{{.Size}}'
|
|
|
|
| 1 |
+
FROM sefyankehail/accent-conversion:latest
|
| 2 |
+
|
| 3 |
+
# Use this to run a command that retrieves the image size
|
| 4 |
+
RUN echo "Base image size: $(docker inspect --format='{{.Size}}' $(docker images -q ubuntu:latest))"
|
| 5 |
+
|
| 6 |
+
# Stage 2: Your application code
|
| 7 |
+
FROM base
|
| 8 |
+
|
| 9 |
+
COPY . /app
|
| 10 |
+
WORKDIR /app
|
| 11 |
|
|
|
|
|
|
|
| 12 |
|
|
|
|
|
|