From b932200c6659a0a36082a5c297764b41982a3b20 Mon Sep 17 00:00:00 2001 From: Taken Date: Fri, 26 Jan 2024 10:49:14 +0100 Subject: [PATCH] Updated docker files for new yarn --- Dockerfile | 3 ++- Dockerfile.cache | 4 +++- 2 files changed, 5 insertions(+), 2 deletions(-) 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