Skip to content

Commit

Permalink
copy static files to correct dir
Browse files Browse the repository at this point in the history
  • Loading branch information
byCrookie committed Jul 27, 2024
1 parent 677dd6e commit 24ee2cc
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,15 @@ 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
WORKDIR /bin/github-stats

ARG STATS_PORT
ENV RUST_BACKTRACE=1

COPY --from=builder /app/static /bin/static
COPY --from=builder /app/target/x86_64-unknown-linux-musl/release/github-stats /bin/github-stats
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"]
ENTRYPOINT ["/bin/github-stats/github-stats"]

0 comments on commit 24ee2cc

Please sign in to comment.