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:
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user