From 7ab3d8f9feda2375e3a689dd5002f6712146c351 Mon Sep 17 00:00:00 2001 From: Florent Daigniere Date: Wed, 16 Nov 2022 12:34:45 +0100 Subject: [PATCH] There is no good reason not to export them is the base image too --- core/base/Dockerfile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/core/base/Dockerfile b/core/base/Dockerfile index bfc8cbc9..57ed1fa1 100644 --- a/core/base/Dockerfile +++ b/core/base/Dockerfile @@ -19,6 +19,10 @@ RUN set -euxo pipefail \ && apk add --no-cache --repository=http://dl-cdn.alpinelinux.org/alpine/edge/testing hardened-malloc ENV LD_PRELOAD=/usr/lib/libhardened_malloc.so +ENV CXXFLAGS="-g -O2 -fdebug-prefix-map=/app=. -fstack-protector-strong -Wformat -Werror=format-security" +ENV CFLAGS="-g -O2 -fdebug-prefix-map=/app=. -fstack-protector-strong -Wformat -Werror=format-security" +ENV CPPFLAGS="-Wdate-time -D_FORTIFY_SOURCE=2" +ENV LDFLAGS="-Wl,-z,relro" WORKDIR /app @@ -42,10 +46,6 @@ RUN set -euxo pipefail \ ; rm -f /tmp/*.pem ENV PATH="${VIRTUAL_ENV}/bin:${PATH}" -ENV CXXFLAGS="-g -O2 -fdebug-prefix-map=/app=. -fstack-protector-strong -Wformat -Werror=format-security" -ENV CFLAGS="-g -O2 -fdebug-prefix-map=/app=. -fstack-protector-strong -Wformat -Werror=format-security" -ENV CPPFLAGS="-Wdate-time -D_FORTIFY_SOURCE=2" -ENV LDFLAGS="-Wl,-z,relro" COPY requirements-${MAILU_DEPS}.txt ./ COPY libs/ libs/