7
This commit is contained in:
@ -5,12 +5,12 @@ FROM base AS builder
|
||||
WORKDIR /app
|
||||
COPY package.json* pnpm-lock.yaml* ./
|
||||
RUN pnpm install --frozen-lockfile --quiet --filter backend
|
||||
COPY ./backend .
|
||||
RUN pnpm run build
|
||||
COPY . .
|
||||
RUN pnpm run build --filter backend
|
||||
|
||||
# Final stage to run the app
|
||||
FROM base AS runner
|
||||
WORKDIR /app
|
||||
COPY --from=builder /app/dist ./dist
|
||||
COPY --from=builder /app/backend/dist ./backend/dist
|
||||
EXPOSE 3000
|
||||
CMD ["pnpm", "start"]
|
||||
CMD ["pnpm", "start:backend"]
|
Reference in New Issue
Block a user