fix: Fix routing
All checks were successful
Build and Push Docker Image / Build (push) Successful in 21s

This commit is contained in:
Jan K9f 2025-09-15 08:16:34 +02:00
commit 9fe7723d13
Signed by: jank
GPG key ID: 22BEAC760B3333D6
2 changed files with 13 additions and 1 deletions

View file

@ -1,4 +1,5 @@
FROM nginx:stable-alpine FROM nginx:stable-alpine
COPY build/client /usr/share/nginx/html COPY build/client /usr/share/nginx/html
COPY default.conf /etc/nginx/conf.d/default.conf
EXPOSE 80 EXPOSE 80
CMD ["nginx", "-g", "daemon off;"] CMD ["nginx", "-g", "daemon off;"]

11
default.conf Normal file
View 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;
}
}