code-server/cursor-fullstack/packages/backend/claudable/Dockerfile
Cursor Agent 05acbfff1e feat: Set up fullstack Cursor IDE with backend and frontend
Co-authored-by: logato7838 <logato7838@vsihay.com>
2025-10-12 12:22:34 +00:00

30 lines
No EOL
544 B
Docker

FROM oven/bun:1 as base
WORKDIR /app
# Install dependencies
COPY package.json bun.lockb* ./
RUN bun install --frozen-lockfile
# Copy source code
COPY . .
# Build the application
RUN bun run build
# Production stage
FROM oven/bun:1-slim
WORKDIR /app
# Copy built application
COPY --from=base /app/dist ./dist
COPY --from=base /app/node_modules ./node_modules
COPY --from=base /app/package.json ./
# Create workspace directory
RUN mkdir -p /app/workspace
# Expose ports
EXPOSE 3001 8080
# Start the application
CMD ["bun", "run", "start"]