Generate Dockerfiles from one source for maintainability. Closes #785.

This commit is contained in:
Robin Schneider
2019-12-28 22:52:01 +01:00
parent f250c54813
commit 8280d200ea
15 changed files with 615 additions and 148 deletions

View File

@@ -1,4 +1,4 @@
# Using multistage build:
# Using multistage build:
# https://docs.docker.com/develop/develop-images/multistage-build/
# https://whitfin.io/speeding-up-rust-docker-builds/
####################### VAULT BUILD IMAGE #######################
@@ -31,7 +31,7 @@ RUN ls
# we need the Rust compiler and Cargo tooling
FROM rust:1.40 as build
# set sqlite as default for DB ARG for backward comaptibility
# set sqlite as default for DB ARG for backward compatibility
ARG DB=sqlite
# Don't download rust docs
@@ -72,6 +72,7 @@ ENV ROCKET_ENV "staging"
ENV ROCKET_PORT=80
ENV ROCKET_WORKERS=10
# Install needed libraries
RUN apt-get update && apt-get install -y \
--no-install-recommends \