vw_small

Hardened fork of Vaultwarden (https://github.com/dani-garcia/vaultwarden) with fewer features.
git clone https://git.philomathiclife.com/repos/vw_small
Log | Files | Refs | README

commit 60164182ae330adc425b960ab46211b40940cd07
parent f9ebb780f92c44b63b1cab6be79ff120f183fc4c
Author: Daniel GarcĂ­a <dani-garcia@users.noreply.github.com>
Date:   Tue, 23 Mar 2021 23:47:12 +0100

Fix alpine armv7 build
Reference: https://github.com/messense/rust-musl-cross/pull/34

Diffstat:
Mdocker/Dockerfile.j2 | 3+++
Mdocker/armv7/Dockerfile.alpine | 1+
2 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/docker/Dockerfile.j2 b/docker/Dockerfile.j2 @@ -93,6 +93,9 @@ RUN rustup set profile minimal {% if "alpine" in target_file %} ENV USER "root" ENV RUSTFLAGS='-C link-arg=-s' +{% if "armv7" in target_file %} +ENV CFLAGS_armv7_unknown_linux_musleabihf="-mfpu=vfpv3-d16" +{% endif %} {% elif "arm" in target_file %} # Install required build libs for {{ package_arch_name }} architecture. # To compile both mysql and postgresql we need some extra packages for both host arch and target arch diff --git a/docker/armv7/Dockerfile.alpine b/docker/armv7/Dockerfile.alpine @@ -38,6 +38,7 @@ RUN rustup set profile minimal ENV USER "root" ENV RUSTFLAGS='-C link-arg=-s' +ENV CFLAGS_armv7_unknown_linux_musleabihf="-mfpu=vfpv3-d16" # Creates a dummy project used to grab dependencies RUN USER=root cargo new --bin /app