Fix docker build
and add catchall route
This commit is contained in:
parent
b1a75a5033
commit
31845dea10
2 changed files with 16 additions and 2 deletions
|
@ -9,6 +9,10 @@ RUN matrix-video-chat/scripts/dockerbuild.sh
|
||||||
FROM nginxinc/nginx-unprivileged:alpine
|
FROM nginxinc/nginx-unprivileged:alpine
|
||||||
|
|
||||||
COPY --from=builder /src/matrix-video-chat/dist /app
|
COPY --from=builder /src/matrix-video-chat/dist /app
|
||||||
|
COPY scripts/default.conf /etc/nginx/conf.d/
|
||||||
|
|
||||||
RUN rm -rf /usr/share/nginx/html \
|
USER root
|
||||||
&& ln -s /app /usr/share/nginx/html
|
|
||||||
|
RUN rm -rf /usr/share/nginx/html
|
||||||
|
|
||||||
|
USER 101
|
||||||
|
|
10
scripts/default.conf
Normal file
10
scripts/default.conf
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
server {
|
||||||
|
listen 8080;
|
||||||
|
server_name localhost;
|
||||||
|
|
||||||
|
location / {
|
||||||
|
root /app;
|
||||||
|
try_files $uri /$uri /index.html;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue