mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-15 09:22:43 +03:00
3f5461fc62
Support both W3C and Zipkin B3 headers and connectors will prefer B3 headers to extract traces because Cloud Run doesn't respect those headers. V3_GIT_ORIGIN_REV_ID: 1471b848e71d87420bc75b9adee60951f306c856
22 lines
580 B
Docker
22 lines
580 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
|
|
|
|
RUN apt-get update && \
|
|
apt-get install -y openssl
|
|
|
|
EXPOSE 3050
|
|
ENTRYPOINT ["/usr/bin/hasura-dev-auth-webhook"]
|