[PR #2193] skip installing python3-dev package on base stage in api docker image #23479

Closed
opened 2026-02-21 20:21:10 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/langgenius/dify/pull/2193

State: closed
Merged: Yes


  • skip installing python3-dev package on base stage in api docker image
  • python3-dev ships with python 3.11 which may causes possible confusion in header links, although it does not have great impact currently.
  • python3-dev package does not bring any gain for pip install with current depended pip packages.

With running apt-get install python3-dev on python:3.10-slim base image, different python3 versions vary in 3.10 and 3.11.

root@19e47d416c0d:/# which -a python3
/usr/local/bin/python3
/usr/local/bin/python3
/usr/bin/python3
/bin/python3
root@19e47d416c0d:/# /usr/local/bin/python3 -V
Python 3.10.13
root@19e47d416c0d:/# /usr/bin/python3 -V
Python 3.11.2
root@19e47d416c0d:/# /bin/python3 -V
Python 3.11.2
root@19e47d416c0d:/# python3 -V
Python 3.10.13
root@19e47d416c0d:/# which python3
/usr/local/bin/python3
**Original Pull Request:** https://github.com/langgenius/dify/pull/2193 **State:** closed **Merged:** Yes --- - skip installing `python3-dev` package on base stage in api docker image - `python3-dev` ships with `python 3.11` which may causes possible confusion in header links, although it does not have great impact currently. - `python3-dev` package does not bring any gain for `pip install` with current depended pip packages. With running `apt-get install python3-dev` on `python:3.10-slim` base image, different python3 versions vary in `3.10` and `3.11`. ``` root@19e47d416c0d:/# which -a python3 /usr/local/bin/python3 /usr/local/bin/python3 /usr/bin/python3 /bin/python3 root@19e47d416c0d:/# /usr/local/bin/python3 -V Python 3.10.13 root@19e47d416c0d:/# /usr/bin/python3 -V Python 3.11.2 root@19e47d416c0d:/# /bin/python3 -V Python 3.11.2 root@19e47d416c0d:/# python3 -V Python 3.10.13 root@19e47d416c0d:/# which python3 /usr/local/bin/python3 ```
yindo added the pull-request label 2026-02-21 20:21:10 -05:00
yindo closed this issue 2026-02-21 20:21:10 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#23479