prometheus-ssh-exporter/Dockerfile
2023-04-10 16:46:44 +02:00

14 lines
No EOL
329 B
Docker

FROM python:latest
WORKDIR /usr/app/src
COPY prometheus-ssh-exporter.py ./
COPY requirements.txt ./
RUN pip3 install -r requirements.txt
# Set this to the port you want to expose
EXPOSE 9999
# Set the -p option to the port you exposed above, defaults to 9999
CMD ["python", "-u", "./prometheus-ssh-exporter.py","-p", "9999"]