14 lines
274 B
Docker
14 lines
274 B
Docker
# Build stage
|
|
FROM oven/bun:latest AS builder
|
|
WORKDIR /app
|
|
COPY package.json bun.lock ./
|
|
RUN bun install
|
|
COPY . .
|
|
RUN bun run build
|
|
|
|
# Serve stage
|
|
FROM nginx:alpine
|
|
COPY --from=builder /app/dist /usr/share/nginx/html
|
|
COPY nginx.conf /etc/nginx/conf.d/default.conf
|
|
EXPOSE 80
|