From 695654c748fb331cd079b953be5253498019b107 Mon Sep 17 00:00:00 2001 From: Kim Min-gyu <99083803+cobocho@users.noreply.github.com> Date: Mon, 10 Jun 2024 21:08:15 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20Docker=20=ED=8C=8C=EC=9D=BC=20=EC=88=98?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- stag.Dockerfile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/stag.Dockerfile b/stag.Dockerfile index 19ef24c..f708ae2 100644 --- a/stag.Dockerfile +++ b/stag.Dockerfile @@ -5,7 +5,7 @@ RUN apk add --no-cache libc6-compat RUN apk update # Set working directory WORKDIR /app -RUN yarn global add turbo +RUN npm i -g turbo COPY . . # Generate a partial monorepo with a pruned lockfile for a target workspace. @@ -22,13 +22,14 @@ COPY .gitignore .gitignore COPY --from=builder /app/out/json/ . COPY --from=builder /app/out/pnpm-lock.yaml ./pnpm-lock.yaml COPY --from=builder /app/out/pnpm-workspace.yaml ./pnpm-workspace.yaml -RUN yarn global add pnpm && pnpm install +RUN npm i -g pnpm && pnpm install # Build the project COPY --from=builder /app/out/full/ . # ref. https://github.com/vercel/next.js/blob/canary/examples/with-docker-multi-env/README.md COPY --from=builder /app/out/full/apps/web/.env.staging ./apps/web/.env.production -RUN yarn turbo run build --filter=web... +COPY ./turbo.json ./turbo.json +RUN pnpm dlx turbo run build --filter=@vook-client/web FROM base AS runner WORKDIR /app