dockerize

This commit is contained in:
2026-06-15 23:36:06 -06:00
parent 6e1263feac
commit a9ff12805f
3 changed files with 43 additions and 0 deletions

24
Dockerfile Normal file
View File

@@ -0,0 +1,24 @@
# Build frontend
FROM oven/bun:1 AS builder
WORKDIR /app
COPY package.json bun.lock ./
RUN bun install --frozen-lockfile
COPY . .
RUN bun run build
# Production runtime
FROM oven/bun:1-slim AS runner
WORKDIR /app
COPY package.json bun.lock ./
RUN bun install --frozen-lockfile --production
COPY server/ ./server/
COPY --from=builder /app/dist ./dist/
RUN mkdir -p data
EXPOSE 3001
CMD ["bun", "run", "server/index.ts"]