From 7c6f02a17d9a4d68c2d63db0f97fc7a11e34971a Mon Sep 17 00:00:00 2001 From: Adibov Date: Wed, 29 Nov 2023 00:05:32 +0330 Subject: [PATCH] chore(frontend): change base image to node:18.18.0 --- .github/workflows/deploy.yaml | 9 +++------ frontend/Dockerfile | 4 ++-- 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index 7aaa4dc..0e92723 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -2,8 +2,8 @@ name: Deploy on: push: - branches: - - master +# branches: +# - master jobs: build-and-push: @@ -24,10 +24,7 @@ jobs: password: ${{ secrets.DOCKERHUB_TOKEN }} - name: Build docker images - run: docker compose build - - - name: Push docker images - run: docker compose push backend frontend + run: docker compose build --push deploy: needs: build-and-push diff --git a/frontend/Dockerfile b/frontend/Dockerfile index c876095..f1f086f 100644 --- a/frontend/Dockerfile +++ b/frontend/Dockerfile @@ -1,4 +1,4 @@ -FROM node:20.10.0 +FROM node:18.18.0 WORKDIR /run @@ -6,4 +6,4 @@ COPY package*.json . RUN npm install COPY . . -RUN npm run build \ No newline at end of file +CMD npm run build \ No newline at end of file