mailApp/Dockerfile
Nick Bland c9e564d48f
Make application dockerised
Update mail_app to also have different forms of configuration outside of a single base yaml file. Allows local or production configurations to be established.
2021-11-16 14:34:05 +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"]