From 8bec2fe1c75576c231de3a04192eb75a370c62ce Mon Sep 17 00:00:00 2001 From: Ching Date: Mon, 4 Mar 2024 22:39:09 +0800 Subject: [PATCH] feat: Add pygrocy installation via tar.gz file --- Dockerfile | 6 ++++++ requirements.txt | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index e10bd5e..bacc3b9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,6 +7,12 @@ WORKDIR /app # 将 requirements.txt 复制到容器中 COPY requirements.txt ./ +# download file from cdn +RUN wget -O /app/pygrocy.tar.gz https://cdn.tunpok.com/pygrocy-2-0-1.tar.gz + +# install pygrocy +RUN pip install /app/pygrocy.tar.gz + # 安装依赖 RUN pip install --no-cache-dir -r requirements.txt diff --git a/requirements.txt b/requirements.txt index 06a392a..0d22a72 100644 --- a/requirements.txt +++ b/requirements.txt @@ -12,7 +12,7 @@ Mastodon.py==1.8.1 numpy==1.26.1 peewee==3.17.0 Pillow==10.1.0 -pygrocy @ git+https://github.com/looching/pygrocy@develop +# pygrocy @ git+https://github.com/looching/pygrocy@develop PyYAML==6.0.1 redis==4.6.0 reportlab==4.0.7