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