prometheus-ssh-exporter/Dockerfile

14 lines
329 B
Docker
Raw Permalink Normal View History

2023-03-12 22:44:14 +01:00
FROM python:latest
WORKDIR /usr/app/src
COPY prometheus-ssh-exporter.py ./
COPY requirements.txt ./
RUN pip3 install -r requirements.txt
2023-04-10 16:46:44 +02:00
# Set this to the port you want to expose
2023-03-12 22:44:14 +01:00
EXPOSE 9999
2023-04-10 16:46:44 +02:00
# Set the -p option to the port you exposed above, defaults to 9999
CMD ["python", "-u", "./prometheus-ssh-exporter.py","-p", "9999"]