Add ARG RUSTFLAGS into Dockerfile (#4556)

* Add ARG RUSTFLAGS into Dockerfile 

Allows passing RUSTFLAGS through --build-arg

* Remove invalid ARG syntax
This commit is contained in:
Tomas 2024-03-21 15:42:30 +00:00 committed by GitHub
parent 2fd81067c7
commit 78581bd696
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -19,6 +19,7 @@ FROM --platform=${BUILDPLATFORM} ${AMD_BUILDER_IMAGE} AS build-amd64
ARG CARGO_BUILD_FEATURES ARG CARGO_BUILD_FEATURES
ARG RUST_RELEASE_MODE ARG RUST_RELEASE_MODE
ARG RUSTFLAGS
WORKDIR /lemmy WORKDIR /lemmy
@ -48,6 +49,7 @@ FROM --platform=linux/amd64 ${ARM_BUILDER_IMAGE} AS build-arm64
ARG RUST_RELEASE_MODE ARG RUST_RELEASE_MODE
ARG CARGO_BUILD_FEATURES ARG CARGO_BUILD_FEATURES
ARG RUSTFLAGS
WORKDIR /home/lemmy/src WORKDIR /home/lemmy/src
USER 10001:10001 USER 10001:10001