-
Notifications
You must be signed in to change notification settings - Fork 2k
Closed
Description
ENV CFLAGS="-fstack-protector-strong -fpic -fpie -O2"
ENV CPPFLAGS="$CFLAGS"
ENV LDFLAGS="-Wl,-O1 -Wl,--hash-style=both"
Lines 47 to 49 in 1739456
ENV CFLAGS="-fstack-protector-strong -fpic -fpie -O2" | |
ENV CPPFLAGS="$CFLAGS" | |
ENV LDFLAGS="-Wl,-O1 -Wl,--hash-style=both" |
These ENV
variables are persisted into the built image, which makes using php:fpm-alpine
as the base image problematic (for example when one wants to build something from source these variables will interfere with the build process and break it).
Here is an example of a relevant issue of a failing compilation process when using php:fpm-alpine
as the base image: openresty/docker-openresty#25.
The ARG
instruction should be used to avoid that problem.
ketchoop and miglanc
Metadata
Metadata
Assignees
Labels
No labels