graphql-engine/v3/dev-auth-webhook.Dockerfile
Daniel Harvey ba5d0e3e8f Fix dev-auth-webhook Docker image, build all in CI (#535)
<!-- Thank you for submitting this PR! :) -->

## Description

I think this broke when moving folders around, realised we weren't even
building it other than in `main`, this rectifies that.

V3_GIT_ORIGIN_REV_ID: f822290f9a00159d4b1b55553f31175b697a16c1
2024-05-01 09:54:14 +00:00

21 lines
407 B
Docker

# build
FROM rust:1.77 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"]