Updated docker files for new yarn

This commit is contained in:
2024-01-26 10:49:14 +01:00
parent 6d2c5762d9
commit b932200c66
2 changed files with 5 additions and 2 deletions

View File

@@ -6,6 +6,7 @@ COPY . /app
WORKDIR /app
ENV NODE_PATH=dist/
RUN corepack enable
RUN yarn build
CMD [ "yarn", "start" ]
CMD [ "yarn", "start" ]

View File

@@ -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