ts6-grafana/Dockerfile

20 lines
400 B
Docker

FROM python:3.12-slim
LABEL maintainer="Bxio"
LABEL description="Prometheus exporter for TeamSpeak 6 servers"
LABEL org.opencontainers.image.source="https://gitea.zol.oixb.run/oixb.run/ts6-grafana"
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY exporter.py .
COPY ts6_client.py .
EXPOSE 9189
USER nobody
ENTRYPOINT ["python", "-u", "exporter.py"]