graphql-engine/v3/dev-auth-webhook.Dockerfile
Samir Talwar b98e8ce3c2 Include the dev-auth-webhook crate in the workspace. (#500)
Now that the Dockerfile is in the root, there's no reason not to.

V3_GIT_ORIGIN_REV_ID: 62199715c2a5aaaf1ac45e22c9d8bdac6838fd72
2024-04-24 08:12:37 +00:00

22 lines
485 B
Docker

# build
FROM rust:1.77 AS builder
WORKDIR /app
COPY ./Cargo.toml ./Cargo.toml
COPY ./crates/tracing-util ./crates/tracing-util
COPY ./crates/dev-auth-webhook ./crates/dev-auth-webhook
WORKDIR /app/crates/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"]