Skip to content

Commit e2108ba

Browse files
committed
fix(docker): add nginx config
1 parent ebdd440 commit e2108ba

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,4 @@ RUN npm run build
1414
FROM nginx:alpine
1515

1616
COPY --from=build-step /app/build /usr/share/nginx/html
17+
COPY --from=build-step /app/nginx.conf /etc/nginx/conf.d/default.conf

nginx.conf

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

0 commit comments

Comments
 (0)