From 78581bd6963a072563da76e9e149a0e65c7f528c Mon Sep 17 00:00:00 2001 From: Tomas <8504482+wereii@users.noreply.github.com> Date: Thu, 21 Mar 2024 15:42:30 +0000 Subject: [PATCH] Add ARG RUSTFLAGS into Dockerfile (#4556) * Add ARG RUSTFLAGS into Dockerfile Allows passing RUSTFLAGS through --build-arg * Remove invalid ARG syntax --- docker/Dockerfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docker/Dockerfile b/docker/Dockerfile index 0630b6e50..39804ee82 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -19,6 +19,7 @@ FROM --platform=${BUILDPLATFORM} ${AMD_BUILDER_IMAGE} AS build-amd64 ARG CARGO_BUILD_FEATURES ARG RUST_RELEASE_MODE +ARG RUSTFLAGS WORKDIR /lemmy @@ -48,6 +49,7 @@ FROM --platform=linux/amd64 ${ARM_BUILDER_IMAGE} AS build-arm64 ARG RUST_RELEASE_MODE ARG CARGO_BUILD_FEATURES +ARG RUSTFLAGS WORKDIR /home/lemmy/src USER 10001:10001