2024-05-28 09:59:00 +03:00
|
|
|
# This should match the Rust version in rust-toolchain.yaml and the other Dockerfiles.
|
|
|
|
FROM rust:1.78.0 AS builder
|
2024-04-11 10:41:06 +03:00
|
|
|
|
|
|
|
WORKDIR /app
|
|
|
|
COPY ./Cargo.toml ./Cargo.toml
|
2024-05-01 12:53:30 +03:00
|
|
|
COPY ./crates ./crates
|
2024-04-11 10:41:06 +03:00
|
|
|
|
2024-05-01 12:53:30 +03:00
|
|
|
WORKDIR /app/crates/auth/dev-auth-webhook
|
2024-04-24 11:11:48 +03:00
|
|
|
RUN cargo build --release --package=dev-auth-webhook
|
2024-04-11 10:41:06 +03:00
|
|
|
|
|
|
|
# copy
|
|
|
|
FROM debian:bookworm-slim
|
|
|
|
|
2024-04-24 11:11:48 +03:00
|
|
|
COPY --from=builder /app/target/release/dev-auth-webhook /usr/bin
|
2024-04-11 10:41:06 +03:00
|
|
|
|
2024-04-16 17:55:54 +03:00
|
|
|
RUN apt-get update && \
|
|
|
|
apt-get install -y openssl
|
|
|
|
|
2024-04-11 10:41:06 +03:00
|
|
|
EXPOSE 3050
|
2024-04-24 11:11:48 +03:00
|
|
|
ENTRYPOINT ["/usr/bin/dev-auth-webhook"]
|