Skip to content

Commit

Permalink
docker
Browse files Browse the repository at this point in the history
  • Loading branch information
randomairborne committed Jan 15, 2024
1 parent 938da66 commit ad40fc7
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,16 @@ RUN echo $PATH

RUN cargo version

RUN --mount=type=cache,target=./target/ --mount=type=cache,target=/usr/local/cargo/ cargo build --release
RUN \
--mount=type=cache,target=/build/target/ \
--mount=type=cache,target=/usr/local/cargo/ \
cargo build --release && cp /build/target/release/mcping /build/mcping

FROM alpine

WORKDIR /

COPY --from=builder /build/target/release/mcping /usr/bin/mcping
COPY --from=builder /build/mcping /usr/bin/mcping
COPY --from=compressor /assets/ /var/www/mcping/

EXPOSE 8080
Expand Down

0 comments on commit ad40fc7

Please sign in to comment.