fix: pipx

This commit is contained in:
张泊明518370910136 2024-09-11 22:32:21 -04:00
parent 5487cf7c13
commit df793096b2
GPG Key ID: CA088E6D9284F870

View File

@ -3,7 +3,7 @@
FROM focs.ji.sjtu.edu.cn:5000/gitea/runner-images:ubuntu-latest-slim FROM focs.ji.sjtu.edu.cn:5000/gitea/runner-images:ubuntu-latest-slim
RUN apt-get update && \ RUN apt-get update && \
apt-get install -y sudo python3 python3-pip && \ apt-get install -y sudo python3-minimal pipx git && \
apt-get clean && \ apt-get clean && \
rm -rf /var/lib/apt/lists/* && \ rm -rf /var/lib/apt/lists/* && \
userdel -r node && \ userdel -r node && \
@ -13,7 +13,8 @@ RUN apt-get update && \
# install joint-teapot # install joint-teapot
# TODO: change it to FOCS gitea mirror for deployment # 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 # install joj3 binary
COPY bin/joj3 /usr/local/bin/ COPY bin/joj3 /usr/local/bin/