Updated docker files for new yarn
This commit is contained in:
@@ -6,6 +6,7 @@ COPY . /app
|
||||
|
||||
WORKDIR /app
|
||||
ENV NODE_PATH=dist/
|
||||
RUN corepack enable
|
||||
RUN yarn build
|
||||
|
||||
CMD [ "yarn", "start" ]
|
||||
CMD [ "yarn", "start" ]
|
||||
|
||||
@@ -2,9 +2,11 @@ FROM node:20.9.0-alpine3.18
|
||||
|
||||
RUN mkdir /cache
|
||||
|
||||
COPY .yarnrc.yml /cache
|
||||
COPY package.json /cache
|
||||
COPY yarn.lock /cache
|
||||
|
||||
WORKDIR /cache
|
||||
|
||||
RUN yarn install
|
||||
RUN corepack enable
|
||||
RUN yarn install
|
||||
|
||||
Reference in New Issue
Block a user