# Development Dockerfile with Bun hot reload FROM node:22-alpine # Install Bun RUN npm install -g bun WORKDIR /app # Layer caching: Copy dependencies first COPY package.json bun.lock ./ # Install dependencies RUN bun install # Copy source code COPY . . EXPOSE 3000 # Development server with hot reload CMD ["bun", "run", "dev"]