Add Dockerfile for multi-stage build setup

This commit is contained in:
2025-11-30 14:01:25 -05:00
parent 0c50b609ad
commit df72492e30

19
server/Dockerfile Normal file
View File

@@ -0,0 +1,19 @@
FROM oven/bun:latest AS builder
WORKDIR /app
COPY package.json .
RUN bun install
COPY . .
RUN bun run ci-build:dist
FROM oven/bun:latest AS runner
WORKDIR /app
COPY --from=builder /app/dist .
CMD ["bun", "run", "src/index.ts"]