FROM oven/bun:canary-debian AS builder WORKDIR /app ADD package.json . RUN bun install ADD . . RUN bun build index.ts --compile FROM debian:bookworm-slim WORKDIR /app COPY --from=builder /app/index /app/index EXPOSE 3000 CMD ["/app/index"]