Skip to content

Commit

Permalink
Merge pull request mermaid-js#722 from mermaid-js/fix/713
Browse files Browse the repository at this point in the history
Fix View does not work via building from Dockerfile mermaid-js#713
  • Loading branch information
sidharthv96 authored Mar 28, 2022
2 parents 8c78868 + 5ba2337 commit 3932e3f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,5 @@ RUN yarn install
RUN yarn build

FROM nginx: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
9 changes: 9 additions & 0 deletions nginx.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
server {
listen 80;
server_name mermaid;
location / {
root /usr/share/nginx/html;
# Fallback to index.html for other paths
try_files $uri /index.html;
}
}

0 comments on commit 3932e3f

Please sign in to comment.