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 ./ .