Fix docker build

and add catchall route
This commit is contained in:
David Baker 2021-12-20 20:05:05 +00:00
parent b1a75a5033
commit 31845dea10
2 changed files with 16 additions and 2 deletions

View file

@ -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
scripts/default.conf Normal file
View file

@ -0,0 +1,10 @@
server {
listen 8080;
server_name localhost;
location / {
root /app;
try_files $uri /$uri /index.html;
}
}