1
0
Fork 0
mirror of https://github.com/dani-garcia/vaultwarden.git synced 2025-08-21 10:15:24 +00:00

Update dependencies and bundle SQLite with the program, so we have one less dependency to install separately

This commit is contained in:
Daniel García 2018-05-07 21:33:54 +02:00
commit 8298795087
4 changed files with 167 additions and 161 deletions

View file

@ -33,11 +33,11 @@ RUN git config --global url."https://github.com/".insteadOf ssh://git@github.com
# we need the Rust compiler and Cargo tooling
FROM rustlang/rust:nightly as build
# Install the database libraries, in this case just sqlite3
RUN apt-get update && apt-get install -y\
sqlite3\
--no-install-recommends\
&& rm -rf /var/lib/apt/lists/*
# Using bundled SQLite, no need to install it
# 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
@ -68,7 +68,6 @@ FROM debian:stretch-slim
# Install needed libraries
RUN apt-get update && apt-get install -y\
sqlite3\
openssl\
--no-install-recommends\
&& rm -rf /var/lib/apt/lists/*