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"]
|