From df793096b2bd43d55b6c8c7b84d815dae0f94ce8 Mon Sep 17 00:00:00 2001 From: Boming Zhang Date: Wed, 11 Sep 2024 22:32:21 -0400 Subject: [PATCH] fix: pipx --- Dockerfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index a3ea29c..dcc5cb3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,7 +3,7 @@ FROM focs.ji.sjtu.edu.cn:5000/gitea/runner-images:ubuntu-latest-slim RUN apt-get update && \ - apt-get install -y sudo python3 python3-pip && \ + apt-get install -y sudo python3-minimal pipx git && \ apt-get clean && \ rm -rf /var/lib/apt/lists/* && \ userdel -r node && \ @@ -13,7 +13,8 @@ RUN apt-get update && \ # install joint-teapot # TODO: change it to FOCS gitea mirror for deployment -RUN pip install --no-cache-dir git+https://mirror.ghproxy.com/https://github.com/BoYanZh/Joint-Teapot +RUN pipx install git+https://mirror.ghproxy.com/https://github.com/BoYanZh/Joint-Teapot && \ + ln -s /root/.local/bin/joint-teapot /usr/local/bin/joint-teapot # install joj3 binary COPY bin/joj3 /usr/local/bin/