From a8c0fb111cf2d0a09305af02c01f5eaaf55d1525 Mon Sep 17 00:00:00 2001 From: Leo Spratt Date: Sun, 7 May 2023 18:03:19 +0100 Subject: [PATCH] Use nginx-unprivileged This allows the Docker image to run as an unprivileged user, due to changes in Docker; the port remains as 80. --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 27f7365a..f0354e7f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -12,6 +12,6 @@ WORKDIR /home RUN yarn install RUN yarn build -FROM nginx:alpine as mermaid-live-editor-runner +FROM nginxinc/nginx-unprivileged:alpine as mermaid-live-editor-runner COPY ./nginx.conf /etc/nginx/conf.d/default.conf COPY --from=mermaid-live-editor-builder --chown=nginx:nginx /home/docs /usr/share/nginx/html