feat: use pip

This commit is contained in:
张泊明518370910136 2024-09-12 03:46:02 -04:00
parent 736c03cf36
commit 5db41b8728
GPG Key ID: CA088E6D9284F870

View File

@ -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-minimal pipx git && \
apt-get install -y --no-install-recommends sudo python3-minimal python3-pip git && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* && \
userdel -r node && \
@ -13,8 +13,7 @@ RUN apt-get update && \
# install joint-teapot
# TODO: change it to FOCS gitea mirror for deployment
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
RUN pip install git+https://mirror.ghproxy.com/https://github.com/BoYanZh/Joint-Teapot --break-system-packages
# install joj3 binary
COPY bin/joj3 /usr/local/bin/