diff --git a/Dockerfile b/Dockerfile
index dcc5cb3..30bbb2a 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-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/