Reverting...
All checks were successful
Anatid Blog CI Workflow / test (./backend) (push) Successful in 27s
Anatid Blog CI Workflow / test (./frontend) (push) Successful in 29s
Anatid Blog CI Workflow / build-and-push-images (./backend/Dockerfile, git.anatid.net/tabris/anatid-blog-backend, ./backend) (push) Successful in 49s
Anatid Blog CI Workflow / build-and-push-images (./frontend/Dockerfile, git.anatid.net/tabris/anatid-blog-frontend, ./frontend) (push) Successful in 44s
Anatid Blog CI Workflow / deploy (push) Successful in 22s

This commit is contained in:
Phill Pover 2025-03-29 08:38:05 +00:00
parent 515d79c7ef
commit 604ef6ad09
2 changed files with 5 additions and 6 deletions

View File

@ -88,6 +88,6 @@ jobs:
working-directory: /home/web
steps:
- name: Pull docker containers
run: docker compose pull
run: docker compose pull anatid-blog-frontend anatid-blog-backend
- name: Start containers
run: docker compose up -d anatid-blog-frontend anatid-blog-backend

View File

@ -5,10 +5,9 @@ COPY ./package*.json ./
RUN npm install
COPY . .
RUN npm run build
CMD [ "node", "build/main.js" ]
# Production Stage
#FROM nginx:stable-alpine AS production
#COPY --from=build /app/build /usr/share/nginx/html
#EXPOSE 80
#CMD ["nginx", "-g", "daemon off;"]
FROM nginx:stable-alpine AS production
COPY --from=build /app/build /usr/share/nginx/html
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]