Skip to content

Commit

Permalink
npm version 18
Browse files Browse the repository at this point in the history
  • Loading branch information
chs98412 committed Aug 5, 2024
1 parent 896cd9f commit f9c9f88
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ RUN yarn build
# Stage 2: Serve the app using nginx
FROM nginx:alpine

# Nginx 설정 파일 복사
COPY ./nginx.conf /etc/nginx/conf.d/default.conf

COPY --from=build /app/build /usr/share/nginx/html

EXPOSE 80
Expand Down
18 changes: 18 additions & 0 deletions nginx.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
server {
listen 80;

server_name localhost;

root /usr/share/nginx/html;

index index.html;

location / {
try_files $uri /index.html;
}

location /static/ {
# Static files serving
try_files $uri $uri/ =404;
}
}

0 comments on commit f9c9f88

Please sign in to comment.