FROM oven/bun:1 AS base WORKDIR /usr/src/app # install dependencies into temp directory # this will cache them and speed up future builds COPY package.json bun.lockb ./ RUN bun install --frozen-lockfile COPY . . RUN bun run build FROM nginx:1.28.0-alpine3.21 COPY docker/nginx.conf /etc/nginx/conf.d/default.conf COPY --from=base /usr/src/app/dist /usr/share/nginx/html