Skip to content

Commit

Permalink
Reverted front end changes
Browse files Browse the repository at this point in the history
  • Loading branch information
noremacskich committed Sep 1, 2024
1 parent a087000 commit bb40eda
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/DeployFrontEnd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ on:
branches: [main]
paths:
- 'client/**'
pull_request:
branches: [main]
# pull_request:
# branches: [main]

jobs:
push_to_registry:
Expand Down Expand Up @@ -77,4 +77,3 @@ jobs:
imageToDeploy: ${{ vars.EXPRESSEDREALMSFRONTEND_REGISTRY_URL }}/noremacskich/expressedrealms-frontend:${{ github.sha }}
containerAppName: ca-expressedrealms-frontend
resourceGroup: RG_ExpressedRealms
environmentVariables: APP_ENV=Production
4 changes: 2 additions & 2 deletions client/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ RUN npm run build-only
FROM nginx:stable-alpine as production-stage

COPY --from=build-stage /app/dist /usr/share/nginx/html
COPY nginx.conf /etc/nginx/nginx.conf
COPY nginx.conf /etc/nginx/nginx.conf

RUN chown -R nginx:nginx /var/cache/nginx && \
chown -R nginx:nginx /var/log/nginx && \
Expand All @@ -21,6 +21,6 @@ RUN touch /var/run/nginx.pid && \
HEALTHCHECK --interval=30s --timeout=3s CMD curl --fail http://localhost:3000/ || exit 1

# Optional: Add custom Nginx configuration
EXPOSE 3000
EXPOSE 80
USER nginx
CMD ["nginx", "-g", "daemon off;"]

0 comments on commit bb40eda

Please sign in to comment.