Skip to content

Commit ad2cc1a

Browse files
committed
Fix the 404 issue maybe
1 parent 0085cb6 commit ad2cc1a

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,6 @@ RUN yarn build-prod
1515

1616
FROM nginx:stable-alpine
1717
COPY --from=build /app/dist /usr/share/nginx/html
18+
COPY nginx.conf /etc/nginx/conf.d/default.conf
1819
EXPOSE 80
1920
CMD ["nginx", "-g", "daemon off;"]

nginx.conf

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
server {
2+
listen 80;
3+
4+
location / {
5+
root /usr/share/nginx/html;
6+
index index.html;
7+
try_files $uri $uri/ /index.html;
8+
}
9+
}

0 commit comments

Comments
 (0)