diff --git a/Dockerfile b/Dockerfile index f15df6a..a81488a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,6 +6,7 @@ COPY . /app WORKDIR /app ENV NODE_PATH=dist/ +RUN corepack enable RUN yarn build -CMD [ "yarn", "start" ] \ No newline at end of file +CMD [ "yarn", "start" ] diff --git a/Dockerfile.cache b/Dockerfile.cache index 02f8d66..d86ac96 100644 --- a/Dockerfile.cache +++ b/Dockerfile.cache @@ -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 \ No newline at end of file +RUN corepack enable +RUN yarn install