tasmota-power-exporter/Dockerfile

11 lines
267 B
Docker

FROM python:alpine
RUN apk add --no-cache tini
ADD metrics.py /app/metrics.py
ADD requirements.txt /tmp/requirements.txt
RUN pip install -r /tmp/requirements.txt && \
rm -rf /tmp/requirements.txt
ENTRYPOINT ["/sbin/tini", "--"]
CMD ["python" , "/app/metrics.py"]