Skip to content

Commit cc02e24

Browse files
committed
Install palace-manager editable in the container
The Poetry to uv migration in #3221 switched the container install from editable (Poetry's default) to non-editable (uv sync --no-editable). That change broke palace.manager.scripts.startup's discovery of the startup_tasks/ directory — the script resolves STARTUP_TASKS_DIR via Path(__file__).parents[4], which assumes startup.py is at ${root}/src/palace/manager/scripts/startup.py (editable install). Under --no-editable, startup.py lives inside site-packages and parents[4] resolves to env/lib/python3.12/ instead of the project root, so startup_tasks/ is never found. Drop --no-editable to restore the working layout.
1 parent 11171c1 commit cc02e24

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

docker/Dockerfile

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,8 @@ RUN uv sync --frozen --no-dev --no-install-workspace
2727

2828
COPY --chown=palace:palace . /var/www/circulation
2929

30-
# Install the project itself as a non-editable install. Omitting
31-
# --no-install-project (and passing --no-editable) is the recommended
32-
# pattern for production Docker builds with uv.
33-
RUN uv sync --frozen --no-dev --no-editable
30+
# Install the project itself as an editable install.
31+
RUN uv sync --frozen --no-dev
3432

3533
###############################################################################
3634
## Circ-exec Image

0 commit comments

Comments
 (0)