19 lines
442 B
Docker
19 lines
442 B
Docker
FROM python:3.11-slim
|
|
|
|
# Set working directory
|
|
WORKDIR /app
|
|
|
|
# Install required Python packages
|
|
RUN pip install --no-cache-dir requests
|
|
|
|
# Copy the health probe simulator script
|
|
COPY health_probe_simulator.py .
|
|
|
|
# Set environment variables with defaults
|
|
ENV PROBE_FAILRATE=30
|
|
ENV PROBE_INTERVAL_SECONDS=60
|
|
ENV API_BASE_URL=https://selfservice.cqers.com/drones/api
|
|
|
|
# Run the health probe simulator
|
|
CMD ["python", "health_probe_simulator.py"]
|