Skip to content

Commit

Permalink
temporary fix
Browse files Browse the repository at this point in the history
  • Loading branch information
minpeter committed Nov 13, 2022
1 parent 4148e81 commit 4aa073c
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
FROM nginx:latest

COPY build /usr/share/nginx/html
# Copy the nginx configuration file
COPY nginx.conf /etc/nginx/nginx.conf

COPY build /etc/nginx/html

EXPOSE 80

Expand Down
14 changes: 14 additions & 0 deletions nginx.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
events {}

http {
server {
listen 80;
location / {

if (!-e $request_filename) {
rewrite ^(.*)$ /index.html break;
}

}
}
}

0 comments on commit 4aa073c

Please sign in to comment.