graphql-engine/v3/dev-auth-webhook.Dockerfile
Samir Talwar 54655fcefc Update to Rust v1.80.1. (#1002)
### What

Upgrade to the latest version of Rust.

### How

I modified `rust-toolchain.toml` and ran `cargo update`.

V3_GIT_ORIGIN_REV_ID: 5fe675ee5dc568cd24de542c826ffd2d355f90ff
2024-08-22 08:56:32 +00:00

21 lines
488 B
Docker

# This should match the Rust version in rust-toolchain.yaml and the other Dockerfiles.
FROM rust:1.80.1 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"]