-
Notifications
You must be signed in to change notification settings - Fork 154
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
Amir Mohammadi
committed
Dec 28, 2022
1 parent
d953d5d
commit 96bc391
Showing
2 changed files
with
20 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
FROM rust:alpine as builder | ||
|
||
RUN apk add --no-cache build-base openssl-dev | ||
|
||
WORKDIR /app/x8 | ||
COPY Cargo.toml Cargo.lock ./ | ||
COPY src/ src/ | ||
|
||
RUN cargo build --release | ||
|
||
FROM alpine:3.12 | ||
COPY --from=builder /app/x8/target/release/x8 /usr/local/bin/x8 | ||
ENTRYPOINT [ "x8" ] |
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