code-server/cursor-fullstack/packages/frontend/cursor-web/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

28 lines
No EOL
473 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 nginx:alpine
WORKDIR /usr/share/nginx/html
# Copy built application
COPY --from=base /app/dist .
# Copy nginx configuration
COPY nginx.conf /etc/nginx/conf.d/default.conf
# Expose port
EXPOSE 5173
# Start nginx
CMD ["nginx", "-g", "daemon off;"]