# Use official Bun image for optimal performance FROM oven/bun:1.1 as base WORKDIR /app # Install dependencies first (better layer caching) COPY package.json bun.lock ./ RUN bun install --frozen-lockfile # Copy all source files COPY . . # Server runs on port 3007 by default (override with PORT env var) EXPOSE 3007 # Start the server (env vars will be injected by CapRover) CMD ["bun", "run", "index.ts"]