build pipeline, health check works again

This commit is contained in:
Andre Heber
2024-02-19 17:49:19 +01:00
parent 39b6e11885
commit 329fd5b86c
7 changed files with 95 additions and 20 deletions

11
Dockerfile Normal file
View File

@ -0,0 +1,11 @@
FROM rust:1.76.0
WORKDIR /app
RUN apt update && apt install lld clang -y
COPY . .
ENV SQLX_OFFLINE true
RUN cargo build --release
ENV APP_ENVIRONMENT production
ENTRYPOINT ["./target/release/zero2prod"]