Files
turftracker/frontend/Dockerfile
Jake Kasper b77c844da4 fix reloads
2025-09-04 08:24:46 -05:00

27 lines
472 B
Docker

###
### Frontend development image (hot reload)
### Runs CRA dev server for fast iteration behind Traefik
###
FROM node:18-alpine
WORKDIR /app
# Install dependencies
COPY package*.json ./
RUN npm install --silent
# Copy source code
COPY . .
# Dev-friendly env for Docker volumes
ENV CHOKIDAR_USEPOLLING=true \
WATCHPACK_POLLING=true \
WDS_SOCKET_PORT=0 \
DANGEROUSLY_DISABLE_HOST_CHECK=true
EXPOSE 3000
# Start CRA dev server (HMR)
CMD ["npm", "start"]