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;"]