Use nginx-unprivileged

This allows the Docker image to run as an unprivileged user, due to
changes in Docker; the port remains as 80.
This commit is contained in:
Leo Spratt
2023-05-07 18:03:19 +01:00
parent 635345ea66
commit a8c0fb111c
+1 -1
View File
@@ -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