Skip to content

Commit

Permalink
use docker scratch as runtime
Browse files Browse the repository at this point in the history
  • Loading branch information
byCrookie committed Jul 31, 2024
1 parent 24ee2cc commit 42f50b3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ RUN cargo build --target x86_64-unknown-linux-musl --release

RUN strip target/x86_64-unknown-linux-musl/release/github-stats

FROM alpine:latest AS runtime
FROM scratch AS runtime
WORKDIR /bin/github-stats

ARG STATS_PORT
Expand All @@ -22,7 +22,6 @@ ENV RUST_BACKTRACE=1
COPY --from=builder /app/static ./static
COPY --from=builder /app/target/x86_64-unknown-linux-musl/release/github-stats ./github-stats

RUN echo $STATS_PORT
EXPOSE $STATS_PORT

ENTRYPOINT ["/bin/github-stats/github-stats"]

0 comments on commit 42f50b3

Please sign in to comment.