prometheus-ssh-exporter/Dockerfile

14 lines
273 B
Docker
Raw 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
# Set this to the port you chose in the prometheus-ssh-exporter.py file
EXPOSE 9999
CMD ["python", "./prometheus-ssh-exporter.py"]