diff --git a/.gitea/workflows/workflow.yaml b/.gitea/workflows/workflow.yaml index 01962a8..8b7e810 100644 --- a/.gitea/workflows/workflow.yaml +++ b/.gitea/workflows/workflow.yaml @@ -22,8 +22,6 @@ jobs: steps: - name: Checkout uses: actions/checkout@v4 - - name: CD to app folder - run: cd ${{ matrix.workingdir }} && ls -al - name: Loging to docker hub registry uses: docker/login-action@v3 with: @@ -37,14 +35,13 @@ jobs: password: ${{ secrets.REPO_PASSWORD }} - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3 + working-directory: ./${{ matrix.workingdir }} - name: Extract metadata (tags, labels) for Docker id: meta uses: docker/metadata-action@v5 + working-directory: ./${{ matrix.workingdir }} with: images: ${{ matrix.image }} - - name: Check build - run: ls -al - working-directory: ./${{ matrix.workingdir }} - name: Build and push uses: docker/build-push-action@v6 working-directory: ./${{ matrix.workingdir }} diff --git a/backend/Dockerfile b/backend/Dockerfile index c5f1df5..2770252 100644 --- a/backend/Dockerfile +++ b/backend/Dockerfile @@ -1,5 +1,5 @@ # Build Stage -FROM node:23-alpine +FROM node:23-alpine AS build WORKDIR /app COPY package*.json ./ RUN npm install @@ -9,6 +9,6 @@ RUN npm run build # Production Stage FROM nginx:stable-alpine AS production -COPY --from=build /app/build /usr/share/nginx/html +COPY --from=build /app/dist /usr/share/nginx/html EXPOSE 80 CMD ["nginx", "-g", "daemon off;"]