mirror of
https://github.com/kristoferssolo/zero2prod.git
synced 2026-02-04 06:42:07 +00:00
feat(docker): add docker support
This commit is contained in:
8
Dockerfile
Normal file
8
Dockerfile
Normal 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"]
|
||||
Reference in New Issue
Block a user