Phase 1-14 complete: - Unified Express.js API (TypeScript, Prisma ORM, PostgreSQL 16) - React Admin GUI (Vite + Ant Design + Zustand) - JWT auth with refresh tokens - Influence: Campaigns, Representatives, Responses, Email Queue - Map: Locations, Cuts, Shifts, Canvassing System - NAR data import infrastructure (2025 format) - Listmonk newsletter integration - Landing page builder (GrapesJS) - MkDocs + Code Server integration - Volunteer portal with GPS tracking - Monitoring stack (Prometheus, Grafana, Alertmanager) - Pangolin tunnel integration Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
37 lines
700 B
Docker
37 lines
700 B
Docker
FROM node:18-alpine
|
|
|
|
# Install wget for health checks
|
|
RUN apk add --no-cache wget
|
|
|
|
WORKDIR /app
|
|
|
|
# Copy package files
|
|
COPY package*.json ./
|
|
|
|
# Install dependencies
|
|
RUN npm ci --only=production && npm cache clean --force
|
|
|
|
# Copy application files
|
|
COPY server.js ./
|
|
COPY public ./public
|
|
COPY routes ./routes
|
|
COPY services ./services
|
|
COPY config ./config
|
|
COPY controllers ./controllers
|
|
COPY middleware ./middleware
|
|
COPY utils ./utils
|
|
COPY templates ./templates
|
|
|
|
# Create non-root user
|
|
RUN addgroup -g 1001 -S nodejs && \
|
|
adduser -S nodejs -u 1001
|
|
|
|
# Change ownership
|
|
RUN chown -R nodejs:nodejs /app
|
|
|
|
USER nodejs
|
|
|
|
EXPOSE 3000
|
|
|
|
# Use exec form to ensure PID 1 is node process
|
|
CMD ["node", "server.js"] |