-
-
Notifications
You must be signed in to change notification settings - Fork 76
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3d240d2
commit 56dae6f
Showing
3 changed files
with
14 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
FROM --platform=$BUILDPLATFORM rust:alpine AS builder | ||
RUN apk add --no-cache musl-dev openssl-dev openssl-libs-static | ||
WORKDIR /app | ||
COPY ./src/ ./src/ | ||
COPY ./crates/ ./crates/ | ||
COPY ./.cargo/ ./cargo/ | ||
COPY ./Cargo.toml ./Cargo.lock ./ | ||
RUN cargo build --release | ||
|
||
FROM scratch | ||
COPY --from=builder /app/target/**/mchprs / | ||
VOLUME ["/data"] | ||
WORKDIR /data | ||
ENTRYPOINT ["/mchprs"] |
This file was deleted.
Oops, something went wrong.