Skip to content

Commit

Permalink
[Fix] Docker 파일 수정 (#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
cobocho authored Jun 10, 2024
1 parent 3ab3265 commit ef1ed62
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions stag.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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
Expand Down

0 comments on commit ef1ed62

Please sign in to comment.