diff --git a/Dockerfile b/Dockerfile index 2071e49..527999d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,13 +1,15 @@ FROM python:3.10.4-bullseye WORKDIR /app -COPY . . +COPY requirements.txt requirements.txt RUN apt-get update -y RUN apt-get upgrade -y RUN apt-get install -y cmake capnproto clang gcc build-essential + +COPY . . RUN pip3 install -r requirements.txt +EXPOSE 9877 VOLUME /app/config CMD [ "python3", "main.py"] -EXPOSE 9877 \ No newline at end of file diff --git a/main.py b/main.py index 0f13795..5be72a3 100644 --- a/main.py +++ b/main.py @@ -29,7 +29,7 @@ async def main(): bffh_user = str(os.getenv("BFFH_USER", "Admin1")) bffh_password = str(os.getenv("BFFH_PASSWORD", "secret")) - await aio.web.start_http_server(addr="localhost", port=exporter_port) + await aio.web.start_http_server(addr="0.0.0.0", port=exporter_port) metriclist = {} session = await pyfabapi.fabapi.connect(bffh_host, bffh_port, bffh_user, bffh_password)