FROM oven/bun:1-alpine

WORKDIR /app

# Install deps first for better layer caching.
COPY package.json ./
RUN bun install

# App source
COPY src ./src
COPY migrations ./migrations
COPY public ./public

EXPOSE 3000

CMD ["bun", "run", "src/index.ts"]
