Files
ntp/reporter/Dockerfile
2025-10-22 16:37:20 -04:00

18 lines
356 B
Docker

# Use a slim Python base
FROM python:3.10-slim
# Install chrony (we only need the 'chronyc' client)
RUN apt-get update && apt-get install -y chrony && \
rm -rf /var/lib/apt/lists/*
# Install Python dependencies
RUN pip install Flask
# Copy the app
WORKDIR /app
COPY main.py .
# Expose the port and run the app
EXPOSE 8080
CMD ["python", "main.py"]