Skip to content

Commit

Permalink
build: openssl requires many hackery
Browse files Browse the repository at this point in the history
  • Loading branch information
azzamsa committed Sep 27, 2023
1 parent b5529d9 commit e9dc857
Show file tree
Hide file tree
Showing 3 changed files with 81 additions and 118 deletions.
193 changes: 78 additions & 115 deletions Cargo.lock

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

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ utoipa = { version = "3.5.0", features = ["axum_extras"] }
utoipa-swagger-ui = { version = "3.1.5", features = ["axum"] }

# Database
sqlx = { version = "0.7.1", features = ["runtime-tokio-native-tls", "postgres", "uuid", "chrono", "migrate"] }
sqlx = { version = "0.7.1", features = ["runtime-tokio-rustls", "postgres", "uuid", "chrono", "migrate"] }

# Logging
tracing = "0.1.37"
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

ARG VCS_REVISION

FROM docker.io/lukemathwalker/cargo-chef:latest-rust-1.71.0 as chef
FROM docker.io/lukemathwalker/cargo-chef:latest-rust-1 as chef
WORKDIR app

FROM chef as planner
Expand All @@ -18,6 +18,6 @@ COPY . .
ARG VCS_REVISION
RUN VCS_REVISION=$VCS_REVISION cargo build --release

FROM gcr.io/distroless/cc-debian11
FROM gcr.io/distroless/cc-debian12
COPY --from=builder /app/target/release/tin /
CMD ["./tin"]

0 comments on commit e9dc857

Please sign in to comment.