mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2025-05-09 21:23:58 +00:00
Fixed docker build and implemented automatic creation of JWT signing keys on platforms with OpenSSL (it needs to be on the PATH)
This commit is contained in:
parent
7a3308200a
commit
d5486670d8
4 changed files with 86 additions and 45 deletions
|
@ -10,19 +10,17 @@ FROM rustlang/rust:nightly as build
|
|||
RUN apt-get update && \
|
||||
apt-get install -y sqlite3
|
||||
|
||||
# Install the diesel_cli tool, to manage migrations
|
||||
# RUN cargo install diesel_cli --no-default-features --features sqlite
|
||||
|
||||
# Creates a dummy project used to grab dependencies
|
||||
RUN USER=root cargo new --bin app
|
||||
WORKDIR /app
|
||||
|
||||
# Copies over *only* your manifests and vendored dependencies
|
||||
COPY ./Cargo.* ./
|
||||
COPY ./_libs ./_libs
|
||||
COPY ./libs ./libs
|
||||
|
||||
# Builds your dependencies and removes the
|
||||
# dummy project, except the target folder
|
||||
# This folder contains the compiled dependencies
|
||||
RUN cargo build --release
|
||||
RUN find . -not -path "./target*" -delete
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue