13 lines
289 B
Docker
13 lines
289 B
Docker
FROM fascinated/docker-images:nodejs_20_with_pnpm
|
|
WORKDIR /app
|
|
|
|
COPY package.json pnpm-lock.yaml pnpm-workspace.yaml ./backend ./
|
|
|
|
RUN pnpm install --filter backend
|
|
RUN pnpm run build:backend
|
|
|
|
COPY --from=builder /app/backend/dist ./backend/dist
|
|
|
|
EXPOSE 8080
|
|
|
|
CMD ["pnpm", "start:backend"] |