feat(docker): add docker support

This commit is contained in:
Kristofers Solo
2024-03-24 20:49:41 +02:00
parent 58681f9220
commit c2b4ac560a
10 changed files with 119 additions and 63 deletions

8
Dockerfile Normal file
View File

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