Skip to content

Commit

Permalink
Try not to put the whole build in subsquent stages
Browse files Browse the repository at this point in the history
  • Loading branch information
tomouchuu committed Nov 5, 2023
1 parent 3b4eabd commit 2817849
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion apps/frontend/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,12 @@ ENV PORT="3000"
ENV NODE_ENV="production"

WORKDIR /app
COPY --from=installer . .

# Copy our required files from the installer stage
COPY --from=installer /app/apps/frontend ./apps/frontend
COPY --from=installer /app/bun.lockb ./apps/bun.lockb
COPY --from=installer /app/node_modules ./node_modules
COPY --from=installer /app/package.json ./apps/package.json
COPY --from=installer /app/packages ./apps/packages

CMD bun apps/frontend/.next/standalone/server.js

0 comments on commit 2817849

Please sign in to comment.