SefyanKehail commited on
Commit
d5cbb29
·
1 Parent(s): 9230c66
Files changed (1) hide show
  1. Dockerfile +6 -13
Dockerfile CHANGED
@@ -1,15 +1,8 @@
1
- FROM sefyankehail/accent-conversion:latest
 
2
 
3
- # Stage 1: Get the base image size
4
- FROM sefyankehail/accent-conversion:latest as base
5
 
6
- # Use this to run a command that retrieves the image size
7
- RUN echo "Base image size: $(docker inspect --format='{{.Size}}' $(docker images -q sefyankehail/accent-conversion:latest))"
8
-
9
- # Stage 2: Your application code
10
- FROM base
11
-
12
- COPY . /app
13
- WORKDIR /app
14
-
15
- CMD ["./your-application"]
 
1
+ # Stage 1: Base image size check
2
+ FROM alpine:latest as build
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}}'