From d55251a9483817520bfce2e871b660404ea0801a Mon Sep 17 00:00:00 2001 From: carlohcs Date: Mon, 12 Aug 2024 00:34:53 -0300 Subject: [PATCH] chore: Update Dockerfile to use npm ci for package installation --- .github/workflows/gc.yaml | 11 +++++++---- Dockerfile | 2 +- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/.github/workflows/gc.yaml b/.github/workflows/gc.yaml index 6c57c22..9228c82 100644 --- a/.github/workflows/gc.yaml +++ b/.github/workflows/gc.yaml @@ -91,15 +91,18 @@ jobs: --build-arg GITHUB_SHA="$GITHUB_SHA" \ --build-arg GITHUB_REF="$GITHUB_REF" \ . + # Push the Docker image to Google Artifact Registry - name: Publish run: |- docker push "$GAR_LOCATION-docker.pkg.dev/$PROJECT_ID/$REPOSITORY/$IMAGE:$GITHUB_SHA" + # Set up kustomize - - name: Set up Kustomize - run: |- - curl -sfLo kustomize https://github.com/kubernetes-sigs/kustomize/releases/download/v3.1.0/kustomize_3.1.0_linux_amd64 - chmod u+x ./kustomize + # - name: Set up Kustomize + # run: |- + # curl -sfLo kustomize https://github.com/kubernetes-sigs/kustomize/releases/download/v3.1.0/kustomize_3.1.0_linux_amd64 + # chmod u+x ./kustomize + # Deploy the Docker image to the GKE cluster - name: Deploy run: |- diff --git a/Dockerfile b/Dockerfile index 87763cf..cbba80a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,7 +4,7 @@ WORKDIR /app COPY package*.json ./ -RUN npm install +RUN npm ci COPY . .