diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..988102e --- /dev/null +++ b/Dockerfile @@ -0,0 +1,10 @@ +FROM python:3.5-slim-jessie + +LABEL maintainer="labs@idealista.com" + +EXPOSE 8089 + +RUN pip install prom2teams +COPY config.ini /opt/prom2teams/config.ini + +ENTRYPOINT ["prom2teams", "--configpath", "/opt/prom2teams/config.ini"] diff --git a/README.md b/README.md index 4bdb8af..3362a24 100644 --- a/README.md +++ b/README.md @@ -44,7 +44,7 @@ $ pip3 install prom2teams ```bash # To start the server (a config file path must be provided, log file path, log level and Jinja2 template path are optional arguments): -$ prom2teams start --configpath [--logfilepath ] [--loglevel (DEBUG|INFO|WARNING|ERROR|CRITICAL)] [--templatepath ] +$ prom2teams --configpath [--logfilepath ] [--loglevel (DEBUG|INFO|WARNING|ERROR|CRITICAL)] [--templatepath ] # To show the help message: $ prom2teams --help