Updated for docker

This commit is contained in:
Nathan Higley
2022-01-14 15:41:55 -05:00
parent cf93de7e62
commit 1f39ee619e
2 changed files with 16 additions and 0 deletions

9
Dockerfile Normal file
View File

@@ -0,0 +1,9 @@
FROM python:alpine
RUN apk add --no-cache tini
ADD metrics.py /metrics.py
ADD requirements.txt /requirements.txt
RUN pip install -r /requirements.txt
ENTRYPOINT ["/sbin/tini", "--"]
CMD ["python" , "/metrics.py"]