feat: add Dockerfile for multi-stage container build
This commit is contained in:
15
Dockerfile
Normal file
15
Dockerfile
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
FROM oven/bun:alpine AS builder
|
||||||
|
|
||||||
|
WORKDIR /app
|
||||||
|
|
||||||
|
COPY . .
|
||||||
|
ENV NODE_ENV=production
|
||||||
|
RUN bun install --frozen-lockfile --production
|
||||||
|
|
||||||
|
FROM joseluisq/static-web-server:2-alpine AS runner
|
||||||
|
|
||||||
|
WORKDIR /public
|
||||||
|
|
||||||
|
COPY --from=builder /app/dist .
|
||||||
|
|
||||||
|
EXPOSE 80
|
||||||
Reference in New Issue
Block a user