This commit is contained in:
parent
aa5a3a147d
commit
ad78d0d225
1 changed files with 3 additions and 2 deletions
|
@ -3,7 +3,7 @@ FROM node:18 AS build
|
|||
WORKDIR /usr
|
||||
COPY package.json ./
|
||||
COPY yarn.lock ./
|
||||
RUN yarn install --frozen-lockfile --registry http://172.17.0.2:4873
|
||||
RUN yarn install --frozen-lockfile
|
||||
COPY . ./
|
||||
RUN yarn build
|
||||
|
||||
|
@ -12,7 +12,8 @@ FROM node:18-alpine3.16
|
|||
WORKDIR /app
|
||||
COPY package.json ./
|
||||
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
|
||||
CMD ["node", "/app"]
|
||||
|
|
Loading…
Reference in a new issue