1
0
Fork 0
mirror of https://github.com/dani-garcia/vaultwarden.git synced 2025-05-09 13:13:56 +00:00

Reduced Docker final image and updated dependencies

This commit is contained in:
Daniel García 2018-02-18 19:14:25 +01:00
parent e173ef948d
commit e9a771057e
3 changed files with 89 additions and 32 deletions

View file

@ -7,8 +7,10 @@
FROM rustlang/rust:nightly as build
# Install the database libraries, in this case just sqlite3
RUN apt-get update && \
apt-get install -y sqlite3
RUN apt-get update && apt-get install -y\
sqlite3\
--no-install-recommends\
&& rm -rf /var/lib/apt/lists/*
# Creates a dummy project used to grab dependencies
RUN USER=root cargo new --bin app
@ -38,8 +40,11 @@ RUN cargo build --release
FROM debian:stretch-slim
# Install needed libraries
RUN apt-get update && \
apt-get install -y sqlite3 openssl libssl-dev
RUN apt-get update && apt-get install -y\
sqlite3\
openssl\
--no-install-recommends\
&& rm -rf /var/lib/apt/lists/*
RUN mkdir /data
VOLUME /data