mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-15 01:12:56 +03:00
0c52ca1d2e
<!-- The PR description should answer 2 important questions: --> ### What Update Rust to [1.81.0](https://blog.rust-lang.org/2024/09/05/Rust-1.81.0.html). ### How Update `rust-toolchain.yaml` and Dockerfiles V3_GIT_ORIGIN_REV_ID: 8a1fe694caaded7a12220d2460e66009f969227a
21 lines
488 B
Docker
21 lines
488 B
Docker
# This should match the Rust version in rust-toolchain.yaml and the other Dockerfiles.
|
|
FROM rust:1.81.0 AS builder
|
|
|
|
WORKDIR /app
|
|
COPY ./Cargo.toml ./Cargo.toml
|
|
COPY ./crates ./crates
|
|
|
|
WORKDIR /app/crates/auth/dev-auth-webhook
|
|
RUN cargo build --release --package=dev-auth-webhook
|
|
|
|
# copy
|
|
FROM debian:bookworm-slim
|
|
|
|
COPY --from=builder /app/target/release/dev-auth-webhook /usr/bin
|
|
|
|
RUN apt-get update && \
|
|
apt-get install -y openssl
|
|
|
|
EXPOSE 3050
|
|
ENTRYPOINT ["/usr/bin/dev-auth-webhook"]
|