# syntax=docker/dockerfile:1
FROM oven/bun:1.3.13 AS build
WORKDIR /src
COPY package.json bun.lock ./
RUN --mount=type=cache,target=/root/.bun/install/cache bun install --frozen-lockfile
COPY tsconfig.json vite.config.ts ./
COPY web ./web
RUN bun run build

FROM nginx:1.29-alpine
COPY --from=build /src/dist /usr/share/nginx/html
