Skip to content

Commit b511710

Browse files
committed
added nginx.conf
1 parent 35cf95d commit b511710

2 files changed

Lines changed: 16 additions & 0 deletions

File tree

frontend/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ RUN npm run build
1111
FROM nginx:alpine
1212

1313
COPY --from=builder /app/dist /usr/share/nginx/html
14+
COPY nginx.conf /etc/nginx/conf.d/default.conf
1415

1516
EXPOSE 80
1617

frontend/nginx.conf

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
server {
2+
listen 80;
3+
server_name localhost;
4+
5+
root /usr/share/nginx/html;
6+
index index.html;
7+
8+
location / {
9+
try_files $uri /index.html;
10+
}
11+
12+
# Logs
13+
access_log /var/log/nginx/access.log;
14+
error_log /var/log/nginx/error.log;
15+
}

0 commit comments

Comments
 (0)