From ab073fe7ec3aa9f3bea4e870fd9aaa5cfabef8ae Mon Sep 17 00:00:00 2001 From: Fabian Stamm Date: Wed, 26 Apr 2023 00:06:49 +0200 Subject: [PATCH] Copy .yarn folder into docker container --- Dockerfile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Dockerfile b/Dockerfile index ca64218..78b718e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,8 +4,10 @@ RUN mkdir -p /app WORKDIR /app COPY ["package.json", "yarn.lock", ".yarnrc.yml", "/app/"] +COPY [".yarn", "/app/.yarn"] COPY ["src", "/app/src"] + RUN yarn install RUN yarn build @@ -19,6 +21,7 @@ WORKDIR /app ENV NODE_ENV=production COPY ["package.json", "yarn.lock", ".yarnrc.yml", "/usr/src/app/"] +COPY [".yarn", "/app/.yarn"] RUN yarn install