fix: Fix routing
All checks were successful
Build and Push Docker Image / Build (push) Successful in 21s
All checks were successful
Build and Push Docker Image / Build (push) Successful in 21s
This commit is contained in:
parent
0fd3520b11
commit
9fe7723d13
2 changed files with 13 additions and 1 deletions
|
@ -1,4 +1,5 @@
|
|||
FROM nginx:stable-alpine
|
||||
COPY build/client /usr/share/nginx/html
|
||||
COPY default.conf /etc/nginx/conf.d/default.conf
|
||||
EXPOSE 80
|
||||
CMD ["nginx", "-g", "daemon off;"]
|
||||
CMD ["nginx", "-g", "daemon off;"]
|
11
default.conf
Normal file
11
default.conf
Normal file
|
@ -0,0 +1,11 @@
|
|||
server {
|
||||
listen 80;
|
||||
server_name localhost;
|
||||
|
||||
root /usr/share/nginx/html;
|
||||
index index.html;
|
||||
|
||||
location / {
|
||||
try_files $uri $uri/ /index.html;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue