Closed BogdanRS closed 1 year ago
Although the idea is to make builds configurable like you are doing... there's a lot going on in there!
Perhaps try doing that by creating a new Dockerfile and putting that in a RUN
stanza. Or even, go into an alpine image and run those by hand and see if it works cleanly?
Once you have that Dockerfile fully working then you can extract the commands and inject it with build arguments.
I have an issue when trying to build Openresty.1.19.3.1(or any other versions with alpine3.12) with modsecurity v3.0.4 (https://github.com/SpiderLabs/ModSecurity) i get this error:
The Modsecurity Dockerfile is: https://github.com/openresty/docker-openresty/blob/1.19.3.1-0/alpine/Dockerfile but i've put this line before building apk dependencies: COPY modsecurity-3.0.4.patch /tmp/modsecurity-3.0.4.patch
Also those are some of the prebuild lines that i use in a gitlab ci job and are relevant for this issue:
Note that this is where it fails curl -fSL https://github.com/SpiderLabs/ModSecurity/commit/f57265a3e24b84534ec8bb6fa20ceb709d6878d0 | patch -p1 && \ It can't apply this patch when trying to build from alpine 3.12