Fix for 404s on frontend.

This commit is contained in:
FireMasterK 2021-08-20 21:40:37 +05:30
parent 03c5086a72
commit 6688fafeaa
No known key found for this signature in database
GPG Key ID: 49451E4482CC5BCD
2 changed files with 13 additions and 0 deletions

View File

@ -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 Normal file
View File

@ -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;
}