Skip to content

Commit

Permalink
Fix dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
randomairborne committed Jan 19, 2024
1 parent c733c55 commit efd65d9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ COPY /assets/ /assets/

RUN find /assets/ -type f ! -name "*.png" -exec pigz -k9 '{}' \; -exec pigz -zk9 '{}' \; -exec brotli -k9 '{}' \; -exec zstd -qk19 '{}' \;

FROM rust:alpine AS builder
FROM rust:alpine AS server-builder

WORKDIR /build
COPY . .
Expand All @@ -26,8 +26,8 @@ FROM alpine

WORKDIR /

COPY --from=builder /build/mcping /usr/bin/mcping
COPY --from=compressor /assets/ /var/www/mcping/
COPY --from=server-builder /build/mcping /usr/bin/mcping
COPY --from=client-builder /assets/ /var/www/mcping/

EXPOSE 8080
ENV ASSET_DIR="/var/www/mcping/"
Expand Down

0 comments on commit efd65d9

Please sign in to comment.