Skip to content

Commit

Permalink
Merge pull request #166 from vector-im/dbkr/fix_nginx
Browse files Browse the repository at this point in the history
Fix docker build
  • Loading branch information
dbkr authored Dec 20, 2021
2 parents b1a75a5 + 31845de commit 28b7e76
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 28b7e76

Please sign in to comment.