diff --git a/.dockerignore b/.dockerignore index 2d8c466..d0f9b01 100644 --- a/.dockerignore +++ b/.dockerignore @@ -1,5 +1,6 @@ __pycache__/ .coverage* +.git .github .gitignore .pdm* diff --git a/Dockerfile b/Dockerfile index 7bb233b..605ebe1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,8 +2,10 @@ FROM python:3.12-alpine # Install package WORKDIR /code -COPY . . -RUN pip3 install . +COPY pyproject.toml pdm.lock README.md ./ +COPY qbittorrent_exporter ./qbittorrent_exporter +RUN pip install . \ + && rm -rf /root/.cache/pip ENV QBITTORRENT_HOST="" ENV QBITTORRENT_PORT=""