mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2025-05-19 10:03:56 +00:00
Fix building mimalloc on armv6
The armv6 builds need a specific location for the libatomic.a file. This commit fixes that by adding a RUSTFLAGS argument for this. Also removed the `link-arg=-s` since this is now already done during via the release profile And removed the CFLAGS for armv7, this is already fixed by default in the blackdex/rust-musl images.
This commit is contained in:
parent
6643e83b61
commit
d98f95f536
9 changed files with 20 additions and 21 deletions
|
@ -44,7 +44,6 @@ ENV DEBIAN_FRONTEND=noninteractive \
|
|||
RUN mkdir -pv "${CARGO_HOME}" \
|
||||
&& rustup set profile minimal
|
||||
|
||||
ENV RUSTFLAGS='-C link-arg=-s'
|
||||
|
||||
# Creates a dummy project used to grab dependencies
|
||||
RUN USER=root cargo new --bin /app
|
||||
|
|
|
@ -44,7 +44,6 @@ ENV DEBIAN_FRONTEND=noninteractive \
|
|||
RUN --mount=type=cache,target=/root/.cargo/git --mount=type=cache,target=/root/.cargo/registry mkdir -pv "${CARGO_HOME}" \
|
||||
&& rustup set profile minimal
|
||||
|
||||
ENV RUSTFLAGS='-C link-arg=-s'
|
||||
|
||||
# Creates a dummy project used to grab dependencies
|
||||
RUN USER=root cargo new --bin /app
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue