15 lines
248 B
Docker
15 lines
248 B
Docker
FROM oven/bun:latest AS builder
|
|
|
|
WORKDIR /opt/build
|
|
|
|
COPY package.json bun.lock ./
|
|
RUN bun install
|
|
|
|
COPY . .
|
|
RUN bun run build
|
|
|
|
FROM docker.io/nginx:1
|
|
|
|
COPY --from=builder /opt/build/dist /usr/share/nginx/html
|
|
COPY nginx.conf /etc/nginx/nginx.conf
|