Skip to content

Commit

Permalink
Fix docker build
Browse files Browse the repository at this point in the history
and add catchall route
  • Loading branch information
dbkr committed Dec 20, 2021
1 parent b1a75a5 commit 31845de
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ RUN matrix-video-chat/scripts/dockerbuild.sh
FROM nginxinc/nginx-unprivileged:alpine

COPY --from=builder /src/matrix-video-chat/dist /app
COPY scripts/default.conf /etc/nginx/conf.d/

RUN rm -rf /usr/share/nginx/html \
&& ln -s /app /usr/share/nginx/html
USER root

RUN rm -rf /usr/share/nginx/html

USER 101
10 changes: 10 additions & 0 deletions scripts/default.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
server {
listen 8080;
server_name localhost;

location / {
root /app;
try_files $uri /$uri /index.html;
}
}

0 comments on commit 31845de

Please sign in to comment.