diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..64bf6b6 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,12 @@ +FROM python:3.8.3-slim-buster + +RUN mkdir -p /prometheus/ecs && \ + chown -R nobody /prometheus + +COPY requirements.txt /prometheus +COPY discoverecs.py /prometheus +RUN pip3 install -r /prometheus/requirements.txt + +USER nobody + +ENTRYPOINT ["python", "/prometheus/discoverecs.py", "--directory", "/prometheus/ecs"] diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..2d2963a --- /dev/null +++ b/requirements.txt @@ -0,0 +1 @@ +boto3==1.14.9