mirror of
https://github.com/coollabsio/coolify.git
synced 2026-06-14 03:19:51 +00:00
fix(docker): remove default nginx configs
Delete the packaged nginx config files after installing nginx so the image uses the application-provided configuration.
This commit is contained in:
@@ -41,6 +41,7 @@ RUN set -eux; \
|
|||||||
grep -qxF "@nginx ${NGINX_REPOSITORY}" /etc/apk/repositories || echo "@nginx ${NGINX_REPOSITORY}" >> /etc/apk/repositories; \
|
grep -qxF "@nginx ${NGINX_REPOSITORY}" /etc/apk/repositories || echo "@nginx ${NGINX_REPOSITORY}" >> /etc/apk/repositories; \
|
||||||
curl -fsSL https://nginx.org/keys/nginx_signing.rsa.pub -o /etc/apk/keys/nginx_signing.rsa.pub; \
|
curl -fsSL https://nginx.org/keys/nginx_signing.rsa.pub -o /etc/apk/keys/nginx_signing.rsa.pub; \
|
||||||
apk add --no-cache --upgrade "nginx@nginx=${NGINX_VERSION}"; \
|
apk add --no-cache --upgrade "nginx@nginx=${NGINX_VERSION}"; \
|
||||||
|
rm -f /etc/nginx/nginx.conf /etc/nginx/conf.d/default.conf; \
|
||||||
nginx -v
|
nginx -v
|
||||||
|
|
||||||
RUN docker-php-serversideup-set-id www-data $USER_ID:$GROUP_ID && \
|
RUN docker-php-serversideup-set-id www-data $USER_ID:$GROUP_ID && \
|
||||||
|
|||||||
@@ -32,6 +32,7 @@ RUN set -eux; \
|
|||||||
grep -qxF "@nginx ${NGINX_REPOSITORY}" /etc/apk/repositories || echo "@nginx ${NGINX_REPOSITORY}" >> /etc/apk/repositories; \
|
grep -qxF "@nginx ${NGINX_REPOSITORY}" /etc/apk/repositories || echo "@nginx ${NGINX_REPOSITORY}" >> /etc/apk/repositories; \
|
||||||
curl -fsSL https://nginx.org/keys/nginx_signing.rsa.pub -o /etc/apk/keys/nginx_signing.rsa.pub; \
|
curl -fsSL https://nginx.org/keys/nginx_signing.rsa.pub -o /etc/apk/keys/nginx_signing.rsa.pub; \
|
||||||
apk add --no-cache --upgrade "nginx@nginx=${NGINX_VERSION}"; \
|
apk add --no-cache --upgrade "nginx@nginx=${NGINX_VERSION}"; \
|
||||||
|
rm -f /etc/nginx/nginx.conf /etc/nginx/conf.d/default.conf; \
|
||||||
nginx -v
|
nginx -v
|
||||||
|
|
||||||
ARG USER_ID
|
ARG USER_ID
|
||||||
@@ -90,6 +91,7 @@ RUN set -eux; \
|
|||||||
grep -qxF "@nginx ${NGINX_REPOSITORY}" /etc/apk/repositories || echo "@nginx ${NGINX_REPOSITORY}" >> /etc/apk/repositories; \
|
grep -qxF "@nginx ${NGINX_REPOSITORY}" /etc/apk/repositories || echo "@nginx ${NGINX_REPOSITORY}" >> /etc/apk/repositories; \
|
||||||
curl -fsSL https://nginx.org/keys/nginx_signing.rsa.pub -o /etc/apk/keys/nginx_signing.rsa.pub; \
|
curl -fsSL https://nginx.org/keys/nginx_signing.rsa.pub -o /etc/apk/keys/nginx_signing.rsa.pub; \
|
||||||
apk add --no-cache --upgrade "nginx@nginx=${NGINX_VERSION}"; \
|
apk add --no-cache --upgrade "nginx@nginx=${NGINX_VERSION}"; \
|
||||||
|
rm -f /etc/nginx/nginx.conf /etc/nginx/conf.d/default.conf; \
|
||||||
nginx -v
|
nginx -v
|
||||||
|
|
||||||
RUN docker-php-serversideup-set-id www-data $USER_ID:$GROUP_ID && \
|
RUN docker-php-serversideup-set-id www-data $USER_ID:$GROUP_ID && \
|
||||||
|
|||||||
Reference in New Issue
Block a user