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.
This commit is contained in:
Nick Bland
2021-11-16 14:34:05 +10:00
parent 1f06f5e66f
commit c9e564d48f
11 changed files with 102 additions and 9 deletions
+11
View File
@@ -0,0 +1,11 @@
FROM rust:1.56
WORKDIR /app
COPY . .
ENV SQLX_OFFLINE true
RUN CARGO BUILD --release
ENV APP_ENVIRONMENT production
ENTRYPOINT ["./target/release/mail_app"]