fix: disable port in redirect for Nginx in Docker container
All checks were successful
Production Build & Deploy / build-and-deploy (push) Successful in 26s
All checks were successful
Production Build & Deploy / build-and-deploy (push) Successful in 26s
This commit is contained in:
@@ -9,9 +9,11 @@ RUN npm run build
|
||||
# Production-Phase
|
||||
FROM nginx:1.25
|
||||
|
||||
# Eigene Nginx-Konfiguration kopieren
|
||||
COPY default.conf /etc/nginx/conf.d/default.conf
|
||||
|
||||
# Nginx konfigurieren für non-root Port 8080
|
||||
RUN sed -i 's/listen\( \)*80;/listen 8080;/g' /etc/nginx/conf.d/default.conf && \
|
||||
touch /var/run/nginx.pid && \
|
||||
RUN touch /var/run/nginx.pid && \
|
||||
chown -R nginx:nginx /var/run/nginx.pid /var/cache/nginx /var/log/nginx /etc/nginx/conf.d
|
||||
|
||||
USER nginx
|
||||
|
||||
Reference in New Issue
Block a user