Commit b9b9d8f
committed
fix: improve Docker Python environment setup for reliable builds
Python environment improvements:
- Add essential build dependencies (python3-dev, g++, make, pkg-config)
- Add libffi-dev and libssl-dev for cryptographic packages
- Simplify requirements copying (remove pyproject.toml dependency)
- Use proper uv virtual environment setup with explicit PATH
- Add verbose output for debugging dependency installation
- Remove redundant gRPC installation (already in requirements.txt)
Build dependencies added:
- gcc, g++: C/C++ compilers for native extensions
- make: Build automation tool
- pkg-config: Package configuration tool
- libffi-dev: Foreign Function Interface library
- libssl-dev: SSL/TLS library for secure connections
- python3-dev: Python development headers
These changes should resolve the Docker build failures related to
Python package compilation, particularly for gRPC and other native
extensions that require compilation during installation.
Signed-off-by: longhao <[email protected]>1 parent f9d38c2 commit b9b9d8f
1 file changed
+18
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
| 37 | + | |
38 | 38 | | |
39 | 39 | | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
40 | 46 | | |
41 | 47 | | |
42 | 48 | | |
43 | | - | |
| 49 | + | |
44 | 50 | | |
45 | 51 | | |
46 | | - | |
47 | | - | |
| 52 | + | |
48 | 53 | | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
53 | 63 | | |
54 | 64 | | |
55 | 65 | | |
| |||
0 commit comments