From 0c68daffd7709d78d0c5afbf73527552ea8832f1 Mon Sep 17 00:00:00 2001 From: saeid_01 Date: Wed, 25 Oct 2023 22:11:28 +0330 Subject: [PATCH] fix: auth cicd on node 14 --- .env => .env.example | 0 .gitignore | 1 + Dockerfile | 9 +++++---- 3 files changed, 6 insertions(+), 4 deletions(-) rename .env => .env.example (100%) diff --git a/.env b/.env.example similarity index 100% rename from .env rename to .env.example diff --git a/.gitignore b/.gitignore index 403adbc..cd00b3f 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ .DS_Store +.env node_modules /dist diff --git a/Dockerfile b/Dockerfile index 87d4ac1..f4d32b4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,3 @@ -# Build Stage FROM docker.willaspace.com/repository/docker-hosted/node:14 as build-stage ARG REGISTRY_TOKEN @@ -9,11 +8,13 @@ WORKDIR /app COPY package*.json ./ -RUN npm config set registry=$REGISTRY_PROXY +RUN npm config set _auth=$REGISTRY_TOKEN -RUN npm config set //repo.willaspace.com/repository/npm-proxy/:_auth=$REGISTRY_TOKEN +RUN npm config set strict-ssl=false -RUN npm install +RUN npm cache clean --force + +RUN npm i COPY ./ .