FROM oven/bun:1 WORKDIR /app # Install dependencies using the workspace lockfile for reproducible builds. COPY package.json bun.lock ./ COPY packages/core/package.json packages/core/ COPY packages/server/package.json packages/server/ RUN bun install --frozen-lockfile # Copy the source the server actually needs. COPY packages/core packages/core COPY packages/server packages/server ENV PORT=8787 EXPOSE 8787 CMD ["bun", "run", "packages/server/src/index.ts"]