From c2f0b9de48a30dfa70a994252bf2eb8c8172795e Mon Sep 17 00:00:00 2001 From: sangge-rockpi <2251250136@qq.com> Date: Thu, 18 Jan 2024 22:29:09 +0800 Subject: [PATCH] use pyproject.toml to control deps --- containerfile | 4 ++-- dockerfile | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/containerfile b/containerfile index d2c2d06..1e12d5c 100644 --- a/containerfile +++ b/containerfile @@ -39,10 +39,10 @@ ENV PATH="${PATH}:/root/.local/bin" \ PIP_DEFAULT_TIMEOUT=100 # copy project files -COPY --chown=root:root requirements.txt main.py /app/ -i https://pypi.tuna.tsinghua.edu.cn/simple +COPY --chown=root:root pyproject.toml main.py /app/ # install dependencies -RUN python -m pip install /app/ +RUN python -m pip install /app/ -i https://pypi.tuna.tsinghua.edu.cn/simple # copy tests COPY --chown=root:root tests /app/tests/ diff --git a/dockerfile b/dockerfile index 75a6f05..eec5a24 100644 --- a/dockerfile +++ b/dockerfile @@ -39,10 +39,10 @@ ENV PATH="${PATH}:/root/.local/bin" \ PIP_DEFAULT_TIMEOUT=100 # copy project files -COPY --chown=root:root requirements.txt main.py /app/ +COPY --chown=root:root pyproject.toml main.py /app/ # install dependencies -RUN python -m pip install -r /app/requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple +RUN python -m pip install -i https://pypi.tuna.tsinghua.edu.cn/simple # execute program CMD python /app/main.py