-
Notifications
You must be signed in to change notification settings - Fork 0
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
2aa7927
commit 84575b9
Showing
10 changed files
with
171 additions
and
56 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,5 @@ | ||
.devcontainer/ | ||
.git/ | ||
.github/ | ||
.vscode/ | ||
target/ |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,28 @@ | ||
FROM rust:1 AS builder | ||
|
||
WORKDIR /src | ||
|
||
COPY . . | ||
|
||
RUN mkdir -p /root/.cargo cat >/root/.cargo/config <<EOF | ||
|
||
EOF | ||
|
||
RUN cargo build --release | ||
|
||
FROM gcr.io/distroless/base-debian12 | ||
|
||
COPY --from=builder /src/target/release/rsjudge /app | ||
|
||
USER rsjudge-supervisor | ||
|
||
CMD ["/app/rsjudge"] | ||
|
||
# FROM rust:1 as build-env | ||
# WORKDIR /app | ||
# COPY . /app | ||
# RUN cargo build --release | ||
|
||
# FROM gcr.io/distroless/cc-debian12 | ||
# COPY --from=build-env /app/target/release/hello-world-distroless / | ||
# CMD ["./hello-world-distroless"] |
Oops, something went wrong.