Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Fix] 도커파일 수정 #18

Merged
merged 1 commit into from
Jun 10, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading