From 5035c9d5ba363c3cbefc3da06dbd02b884eee957 Mon Sep 17 00:00:00 2001 From: Anvansh <32684077+RyanWalker277@users.noreply.github.com> Date: Fri, 21 Jul 2023 12:31:29 +0530 Subject: [PATCH] Fix: Fied dockerfile and build action (#192) --- .github/workflows/docker-push.yml | 3 +-- Dockerfile | 6 ------ 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/.github/workflows/docker-push.yml b/.github/workflows/docker-push.yml index d6ac738..62c9c2c 100644 --- a/.github/workflows/docker-push.yml +++ b/.github/workflows/docker-push.yml @@ -32,5 +32,4 @@ jobs: with: context: "." push: true - tags: samagragovernance/uci-apis:${{ steps.vars.outputs.tag }} - build-args: NPM_TOKEN=${{secrets.TOKEN}} \ No newline at end of file + tags: samagragovernance/uci-apis:${{ steps.vars.outputs.tag }} \ No newline at end of file diff --git a/Dockerfile b/Dockerfile index 90898f6..7d8c7e8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,13 +1,7 @@ FROM node:16 AS install WORKDIR /app COPY package.json ./ -COPY .npmrc . -ARG NPM_TOKEN -RUN sed -i "s|${NPM_TOKEN}|${NPM_TOKEN}|g" /app/.npmrc -COPY yarn.lock ./ RUN yarn install -RUN rm -f .npmrc - FROM node:16 as build WORKDIR /app