feat: add Dockerfile for containerized build and deployment
This commit is contained in:
19
Dockerfile
Normal file
19
Dockerfile
Normal 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
|
||||||
Reference in New Issue
Block a user