Skip to content

Commit

Permalink
chore(deps): ⬆️ update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
Jisu-Woniu committed May 15, 2024
1 parent 2aa7927 commit 84575b9
Show file tree
Hide file tree
Showing 10 changed files with 171 additions and 56 deletions.
5 changes: 5 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
.devcontainer/
.git/
.github/
.vscode/
target/
84 changes: 42 additions & 42 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ rust-version = "1.74"
[workspace.dependencies]
log = "0.4.21"
rsjudge-utils = { version = "0.1.0", path = "crates/rsjudge-utils" }
serde = { version = "1.0.200", features = ["derive"] }
serde = { version = "1.0.202", features = ["derive"] }

[package]
name = "rsjudge"
Expand Down Expand Up @@ -149,7 +149,7 @@ rsjudge-grpc = { version = "0.1.0", path = "crates/rsjudge-grpc", optional = tru
rsjudge-rabbitmq = { version = "0.1.0", path = "crates/rsjudge-rabbitmq", optional = true }
rsjudge-rest = { version = "0.1.0", path = "crates/rsjudge-rest", optional = true }

anyhow = "1.0.82"
anyhow = "1.0.83"
clap = { version = "4.5.4", features = ["derive"] }
env_logger = "0.11.3"
log.workspace = true
Expand Down
28 changes: 28 additions & 0 deletions Dockerfile
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"]
Loading

0 comments on commit 84575b9

Please sign in to comment.