fix reloads

This commit is contained in:
Jake Kasper
2025-09-04 08:24:46 -05:00
parent 6e8fa900e4
commit b77c844da4
3 changed files with 20 additions and 12 deletions

View File

@@ -1,21 +1,26 @@
###
### Frontend development image (hot reload)
### Runs CRA dev server for fast iteration behind Traefik
###
FROM node:18-alpine
# Set working directory
WORKDIR /app
# Copy package files and install dependencies
# Install dependencies
COPY package*.json ./
RUN npm install --silent
# Copy source code
COPY . .
# Expose port
# Dev-friendly env for Docker volumes
ENV CHOKIDAR_USEPOLLING=true \
WATCHPACK_POLLING=true \
WDS_SOCKET_PORT=0 \
DANGEROUSLY_DISABLE_HOST_CHECK=true
EXPOSE 3000
# Health check using Node.js script
HEALTHCHECK --interval=30s --timeout=10s --start-period=60s --retries=3 \
CMD node healthcheck.js
# Start the application
# Start CRA dev server (HMR)
CMD ["npm", "start"]