# CHORUS Services Website - Development Dockerfile # Optimized for development with hot reloading and debugging FROM node:18-alpine AS base RUN apk add --no-cache libc6-compat curl WORKDIR /app # Development stage FROM base AS development # Install dependencies COPY package.json package-lock.json* ./ RUN npm ci && npm cache clean --force # Copy source code COPY . . # Create non-root user for security RUN addgroup --system --gid 1001 nodejs && \ adduser --system --uid 1001 nextjs && \ chown -R nextjs:nodejs /app USER nextjs # Environment variables ENV NODE_ENV=development ENV NEXT_TELEMETRY_DISABLED=1 ENV PORT=3000 # Expose ports EXPOSE 3000 3001 # Health check HEALTHCHECK --interval=30s --timeout=10s --start-period=10s --retries=3 \ CMD curl -f http://localhost:3000/ || exit 1 # Start development server CMD ["npm", "run", "dev"]