Gusti Adli Anshari commited on
Commit
116ecff
·
1 Parent(s): a8af62d

update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -1
Dockerfile CHANGED
@@ -6,4 +6,10 @@ COPY . .
6
  RUN apk add --no-cache musl-dev
7
  RUN cargo install --path .
8
 
9
- CMD [ "/usr/local/cargo/bin/rust-rocket-counter-api" ]
 
 
 
 
 
 
 
6
  RUN apk add --no-cache musl-dev
7
  RUN cargo install --path .
8
 
9
+ # FROM alpine:3.18
10
+ FROM scratch
11
+
12
+ WORKDIR /app/bin
13
+ COPY --from=builder /usr/local/cargo/bin/rust-rocket-counter-api /app/bin/app
14
+
15
+ CMD [ "./app" ]