FROM oven/bun:latest AS base
WORKDIR /app

# Install system dependencies
RUN apt-get update && apt-get install -y git

# Install dependencies
COPY package.json bun.lock ./
RUN bun install --frozen-lockfile

# Copy source code
COPY . .

# Expose port
EXPOSE 3000

# Default command
CMD ["bun", "run", "dev"]
