Dockerfile 391 B

123456789101112131415161718
  1. FROM python:3.9-slim-buster
  2. LABEL maintainer="Christopher Nethercott" \
  3. description="PiHole to InfluxDB data bridge"
  4. # Install Python packages
  5. COPY requirements.txt /
  6. RUN pip install -r /requirements.txt
  7. # Clean up
  8. RUN apt-get -q -y autoremove
  9. RUN apt-get -q -y clean
  10. RUN rm -rf /var/lib/apt/lists/*
  11. # Final setup & execution
  12. COPY . /app
  13. WORKDIR /app
  14. CMD ["python3", "-u", "main.py"]