RUN sed-i's/fastcgi_pass phpfpm:9000;/fastcgi_pass localhost:9000;/g' /etc/nginx/sites-available/default
# Install Entrypoint
COPY ./helpers/entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
COPY --chown=1000:1000 . /html
RUN chmod +x /html/helpers/*.sh
# Install packages
RUN --mount=type=secret,id=auto-devops-build-secrets . /run/secrets/auto-devops-build-secrets &&\
chmod +x ./helpers/installPackages.sh &&\
...
...
@@ -123,11 +122,4 @@ RUN --mount=type=secret,id=auto-devops-build-secrets . /run/secrets/auto-devops-
USER 1000:1000
#CMD cp /root/.env .env && \
# sed -i 's/^REDIS_PASSWORD=.*/REDIS_PASSWORD=null/g' .env && \
# if [ "$GITLAB_ENVIRONMENT_NAME" = "production" ]; then sed -i 's/^APP_ENV=.*/APP_ENV=production/g' .env; else sed -i 's/^APP_ENV=.*/APP_ENV=development/g' .env; fi && \