From 604ef6ad097cd7b60e81c36a3edb305abb533c92 Mon Sep 17 00:00:00 2001 From: Phill Pover Date: Sat, 29 Mar 2025 08:38:05 +0000 Subject: [PATCH] Reverting... --- .gitea/workflows/workflow.yaml | 2 +- frontend/Dockerfile | 9 ++++----- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/.gitea/workflows/workflow.yaml b/.gitea/workflows/workflow.yaml index c56faff..ac7f668 100644 --- a/.gitea/workflows/workflow.yaml +++ b/.gitea/workflows/workflow.yaml @@ -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 diff --git a/frontend/Dockerfile b/frontend/Dockerfile index a015fa5..d19cb91 100644 --- a/frontend/Dockerfile +++ b/frontend/Dockerfile @@ -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;"]