Skip to content

Commit

Permalink
Merge pull request #54 from edenia/update-dockerfile-webapp
Browse files Browse the repository at this point in the history
fix(devops): add nginx.com dockerfile
  • Loading branch information
fagomezra committed Jul 26, 2023
2 parents 5ada5b3 + 0c22055 commit d20547a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion webapp/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ RUN yarn build
FROM nginx:1.17.10-alpine as run-stage

COPY --from=build-stage /usr/src/app/.next /usr/share/nginx/html
COPY --from=build-stage /usr/src/app/next.config.js /etc/nginx/conf.d/default.conf
COPY --from=build-stage /usr/src/app/nginx.conf /etc/nginx/conf.d/default.conf

EXPOSE 80

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

location / {
root /usr/share/nginx/html;
index index.html index.htm;
try_files $uri $uri/ /index.html =404;
}
}

0 comments on commit d20547a

Please sign in to comment.