Commit d6e6b57
🐛 fix(server): Dockerfile uses venv + copies source before install
Two stacked issues:
- python:3.12-slim marks system Python as externally-managed (PEP 668), so
`uv pip install --system` fails. Switch to a project venv at /opt/venv
and put it on PATH.
- setuptools needs the opds_sync/ source tree at install time, but the
original COPY ordering installed before copying. Reorder.
Verified locally: image builds and `from opds_sync.main import create_app`
works in the resulting container.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 1effff1 commit d6e6b57
1 file changed
Lines changed: 10 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
6 | 8 | | |
7 | 9 | | |
8 | 10 | | |
9 | 11 | | |
10 | 12 | | |
11 | 13 | | |
12 | 14 | | |
13 | | - | |
14 | | - | |
15 | | - | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
16 | 18 | | |
| 19 | + | |
| 20 | + | |
17 | 21 | | |
| 22 | + | |
| 23 | + | |
18 | 24 | | |
19 | 25 | | |
20 | 26 | | |
| |||
0 commit comments