Files
turftracker/frontend/Dockerfile
2025-09-03 11:44:14 -04:00

22 lines
391 B
Docker

FROM node:18-alpine
# Set working directory
WORKDIR /app
# Copy package files and install dependencies
COPY package*.json ./
RUN npm install --silent
# Copy source code
COPY . .
# Expose port
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
CMD ["npm", "start"]