From edf40351348b9805690d0e703fbeab26ae0eea8b Mon Sep 17 00:00:00 2001 From: Oracle Date: Tue, 21 Nov 2023 16:44:23 +0000 Subject: [PATCH] =?UTF-8?q?:rocket:=20fix(docker):=20yarn=20install=20?= =?UTF-8?q?=EB=88=84=EB=9D=BD=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 00de10f..3d097d5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,9 +1,15 @@ -FROM node:18 +FROM node:18 as build WORKDIR /usr/src/app -COPY . . +COPY .yarn ./.yarn +COPY package.json ./ +COPY yarn.lock ./ +COPY .yarnrc.yml ./ + +RUN yarn install --immutable +COPY . . RUN yarn build EXPOSE 3000