Commit 7af12a1
authored
Fix dependency vulns and Dockerfile python version mismatch (#206)
* Fix high/critical dependency vulns and FastMCP init compatibility
* Add fastmcp.json to declare environment dependencies metadata
* fix(docker): match builder python version to pyatlan runtime
The switch to pyatlan base image in b8157d6 introduced two issues:
1. Builder stage used Python 3.12 while the pyatlan runtime image
uses Python 3.11. Packages compiled against 3.12 (C extensions,
bytecode) can fail on 3.11 at runtime.
2. The venv python symlink pointed to /usr/local/bin/python (builder
path) which does not exist in the pyatlan runtime image where
python lives at /usr/bin/python3. This caused the venv to be
silently skipped, falling back to the system python without
any of the installed dependencies (fastmcp, uvicorn, etc).
Changes:
- Builder image changed from python3.12 to python3.11
- Added symlink fixup after COPY to repoint venv python to
the runtime's /usr/bin/python31 parent b8157d6 commit 7af12a1
5 files changed
Lines changed: 537 additions & 102 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
25 | 29 | | |
26 | 30 | | |
27 | 31 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
27 | 37 | | |
28 | 38 | | |
29 | 39 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
| 35 | + | |
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| |||
0 commit comments