Remove registry usage
All checks were successful
ci/woodpecker/push/build Pipeline was successful

This commit is contained in:
Alessio Davoli 2023-09-11 10:02:17 +02:00
parent aa5a3a147d
commit ad78d0d225

View file

@ -3,7 +3,7 @@ FROM node:18 AS build
WORKDIR /usr WORKDIR /usr
COPY package.json ./ COPY package.json ./
COPY yarn.lock ./ COPY yarn.lock ./
RUN yarn install --frozen-lockfile --registry http://172.17.0.2:4873 RUN yarn install --frozen-lockfile
COPY . ./ COPY . ./
RUN yarn build RUN yarn build
@ -12,7 +12,8 @@ FROM node:18-alpine3.16
WORKDIR /app WORKDIR /app
COPY package.json ./ COPY package.json ./
COPY yarn.lock ./ COPY yarn.lock ./
RUN yarn install --registry http://172.17.0.2:4873 --frozen-lockfile COPY --from=build /usr/build /app RUN yarn install --frozen-lockfile
COPY --from=build /usr/build /app
EXPOSE 8000 EXPOSE 8000
CMD ["node", "/app"] CMD ["node", "/app"]