mailApp/Dockerfile
Nick Bland b279578b51
make image slightly smaller but fixing up the dockerignore syntaxing
also added in another ENV to the dockerfile
2021-11-16 15:10:20 +10:00

11 lines
160 B
Docker

FROM rust:1.56
WORKDIR /app
COPY . .
ENV SQLX_OFFLINE true
RUN cargo build --release
ENV APP_ENVIRONMENT production
ENTRYPOINT ["./target/release/mail_app"]