Browse Source

Fix for 404s on frontend.

pull/368/head
FireMasterK 9 months ago
parent
commit
6688fafeaa
No known key found for this signature in database
GPG Key ID: 49451E4482CC5BCD
  1. 1
      Dockerfile
  2. 12
      docker/nginx.conf

1
Dockerfile

@ -13,5 +13,6 @@ RUN yarn build && sed -i 's/fonts.gstatic.com/fonts.kavin.rocks/g' dist/css/*.cs
FROM nginx:alpine
COPY --from=build /app/dist/ /usr/share/nginx/html/
COPY docker/nginx.conf /etc/nginx/conf.d/default.conf
EXPOSE 80

12
docker/nginx.conf

@ -0,0 +1,12 @@
server {
listen 80;
listen [::]:80;
server_name localhost;
location / {
root /usr/share/nginx/html;
index index.html index.htm;
}
error_page 404 =200 /index.html;
}
Loading…
Cancel
Save