浏览代码

Removing pip from final image

Penta 1 月之前
父节点
当前提交
da919f43e7
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      Dockerfile

+ 1 - 0
Dockerfile

@@ -12,6 +12,7 @@ RUN pip install --prefix=/install -r requirements.txt
 # ---------- RUNTIME STAGE ----------
 FROM python:3.14-alpine
 
+RUN python3 -m pip uninstall pip -y
 RUN apk add mariadb-connector-c
 
 COPY --from=builder /install /usr/local