From 6c50e8a353fd3d674e241835fa8a29585896872f Mon Sep 17 00:00:00 2001 From: robo <30987265+Robonau@users.noreply.github.com> Date: Sun, 4 Dec 2022 17:50:34 +0000 Subject: [PATCH] nginxinc/nginx-unprivileged --- Dockerfile | 4 ++-- docker-compose.yml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index a1ef2e31..4a93f68f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -9,7 +9,7 @@ FROM develop-stage as build-stage RUN npm install RUN npm run build # production stage -FROM nginx:1.23.2-alpine as production-stage +FROM nginxinc/nginx-unprivileged:1.23.2-alpine-slim as production-stage COPY --from=build-stage /app/dist/pwa /usr/share/nginx/html -EXPOSE 80 +EXPOSE 8080 CMD ["nginx", "-g", "daemon off;"] diff --git a/docker-compose.yml b/docker-compose.yml index 69f94933..48a05f75 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -21,5 +21,5 @@ services: build: context: . ports: - - '9013:80' + - '9013:8080' restart: unless-stopped