FROM oven/bun:1-alpine AS base WORKDIR /app FROM base AS build COPY package.json bun.lock ./ RUN bun install --frozen-lockfile --production COPY *.ts tsconfig.json ./ RUN bun build --production --target=bun --sourcemap=inline --outfile=index.js index.ts FROM base AS run COPY --from=build /app/index.js ./ CMD ["bun", "run", "index.js"]