2024-04-11 10:41:06 +03:00
|
|
|
# build
|
|
|
|
FROM rust:1.77 AS builder
|
|
|
|
|
|
|
|
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"]
|