mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-15 09:22:43 +03:00
b98e8ce3c2
Now that the Dockerfile is in the root, there's no reason not to. V3_GIT_ORIGIN_REV_ID: 62199715c2a5aaaf1ac45e22c9d8bdac6838fd72
22 lines
485 B
Docker
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"]
|