summaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
authorDaniel García <[email protected]>2018-02-18 19:14:25 +0100
committerDaniel García <[email protected]>2018-02-18 19:14:25 +0100
commite9a771057ebfb499f3844bd945fab3e69d0294f4 (patch)
tree9af9b031ef77c182479fe79456d36e39d09fb651 /Dockerfile
parente173ef948d1dae0edea38d435b9c78c9cdb53085 (diff)
downloadvaultwarden-e9a771057ebfb499f3844bd945fab3e69d0294f4.tar.gz
vaultwarden-e9a771057ebfb499f3844bd945fab3e69d0294f4.zip
Reduced Docker final image and updated dependencies
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile13
1 files changed, 9 insertions, 4 deletions
diff --git a/Dockerfile b/Dockerfile
index 34d5703e..e4bd8ca6 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -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