force use npmjs registry

This commit is contained in:
Jason Kulatunga 2022-09-27 08:27:06 -07:00
parent c473ee7e47
commit 7acbb8148c
1 changed files with 3 additions and 2 deletions

View File

@ -2,8 +2,9 @@ FROM node:18.9.0 as frontend-build
WORKDIR /usr/src/fastenhealth/frontend
#COPY frontend/package.json frontend/yarn.lock ./
COPY frontend/package.json ./
COPY frontend/yarn.lock ./
RUN yarn install --frozen-lockfile --network-timeout 100000
#COPY frontend/yarn.lock ./
RUN yarn config set registry "http://registry.npmjs.org" \
yarn install --frozen-lockfile --network-timeout 100000
COPY frontend/ ./
RUN yarn run build -- --configuration sandbox --output-path=../dist