diff options
author | Daniel García <[email protected]> | 2018-02-18 19:14:25 +0100 |
---|---|---|
committer | Daniel García <[email protected]> | 2018-02-18 19:14:25 +0100 |
commit | e9a771057ebfb499f3844bd945fab3e69d0294f4 (patch) | |
tree | 9af9b031ef77c182479fe79456d36e39d09fb651 /Dockerfile | |
parent | e173ef948d1dae0edea38d435b9c78c9cdb53085 (diff) | |
download | vaultwarden-e9a771057ebfb499f3844bd945fab3e69d0294f4.tar.gz vaultwarden-e9a771057ebfb499f3844bd945fab3e69d0294f4.zip |
Reduced Docker final image and updated dependencies
Diffstat (limited to 'Dockerfile')
-rw-r--r-- | Dockerfile | 13 |
1 files changed, 9 insertions, 4 deletions
@@ -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 |