feat: add Dockerfile for containerized build and deployment

This commit is contained in:
2026-03-03 16:06:56 -06:00
parent 67784df7e1
commit 7803e845dd

19
Dockerfile Normal file
View File

@@ -0,0 +1,19 @@
FROM oven/bun:alpine AS builder
WORKDIR /app
COPY . .
ENV NODE_ENV=production
ENV CI=true
RUN bun install --frozen-lockfile --production
RUN bun run build
FROM joseluisq/static-web-server:2-alpine AS runner
WORKDIR /public
COPY --from=builder /app/dist .
ENV SERVER_ROOT="/public"
EXPOSE 80