Skip to content

Commit

Permalink
build: run binary on docker scratch
Browse files Browse the repository at this point in the history
  • Loading branch information
Quentin Correia committed Dec 30, 2024
1 parent 8c3cd1d commit aa5bc6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ COPY . .
RUN cargo build -r

# (5) runtime image, you can use any base image you want
FROM alpine:latest AS runtime
FROM scratch AS runtime
WORKDIR /app
COPY --from=builder /app/target/release/fiars /app/fiars
CMD ["/app/fiars"]

0 comments on commit aa5bc6f

Please sign in to comment.