mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-15 01:12:56 +03:00
19 lines
526 B
Docker
19 lines
526 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/hasura-authn-webhook/dev-auth-webhook ./crates/hasura-authn-webhook/dev-auth-webhook
|
||
|
|
||
|
WORKDIR /app/crates/hasura-authn-webhook/dev-auth-webhook
|
||
|
RUN cargo build --release
|
||
|
|
||
|
# copy
|
||
|
FROM debian:bookworm-slim
|
||
|
|
||
|
COPY --from=builder /app/crates/hasura-authn-webhook/dev-auth-webhook/target/release/hasura-dev-auth-webhook /usr/bin
|
||
|
|
||
|
EXPOSE 3050
|
||
|
ENTRYPOINT ["/usr/bin/hasura-dev-auth-webhook"]
|