Skip to content

An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.

fix(docker): remove default nginx configs

Andras Bacsai6ceb444cf43e
diff --git a/docker/development/Dockerfile b/docker/development/Dockerfile
index 114a25828f..8fc46e32d5 100644
--- a/docker/development/Dockerfile
+++ b/docker/development/Dockerfile
@@ -41,6 +41,7 @@ RUN set -eux; \
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; \
apk add --no-cache --upgrade "nginx@nginx=${NGINX_VERSION}"; \
+ rm -f /etc/nginx/nginx.conf /etc/nginx/conf.d/default.conf; \
nginx -v
RUN docker-php-serversideup-set-id www-data $USER_ID:$GROUP_ID && \
diff --git a/docker/production/Dockerfile b/docker/production/Dockerfile
index 56a51373bb..0f849785e2 100644
--- a/docker/production/Dockerfile
+++ b/docker/production/Dockerfile
@@ -32,6 +32,7 @@ RUN set -eux; \
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; \
apk add --no-cache --upgrade "nginx@nginx=${NGINX_VERSION}"; \
+ rm -f /etc/nginx/nginx.conf /etc/nginx/conf.d/default.conf; \
nginx -v
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; \
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}"; \
+ rm -f /etc/nginx/nginx.conf /etc/nginx/conf.d/default.conf; \
nginx -v
RUN docker-php-serversideup-set-id www-data $USER_ID:$GROUP_ID && \