Skip to content

Commit

Permalink
Merge pull request #75 from merogersdev/hotfix/71-cicd-not-updating
Browse files Browse the repository at this point in the history
feature: add nginx config to frontend
  • Loading branch information
merogersdev authored Feb 27, 2024
2 parents a761faf + 622ea79 commit 781602e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions frontend/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@ RUN npm run build

FROM nginx:alpine as frontend
COPY --from=build /app/build /usr/share/nginx/html
COPY nginx.conf /etc/nginx/nginx.conf
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]
8 changes: 8 additions & 0 deletions frontend/nginx.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
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 781602e

Please sign in to comment.