mirror of
https://github.com/EstrellaXD/Auto_Bangumi.git
synced 2026-12-01 08:46:31 +08:00
fix(docker): remove --no-install-project flag to fix uvicorn import error
The --no-install-project flag causes uv to skip installing dependencies when package = false is set in pyproject.toml, resulting in ModuleNotFoundError for uvicorn at container startup. Generated with [Claude Code](https://claude.ai/code) via [Happy](https://happy.engineering) Co-Authored-By: Claude <noreply@anthropic.com> Co-Authored-By: Happy <yesreply@happy.engineering>
This commit is contained in:
@@ -8,7 +8,7 @@ ENV UV_LINK_MODE=copy
|
||||
|
||||
# Install dependencies (cached layer)
|
||||
COPY backend/pyproject.toml backend/uv.lock ./
|
||||
RUN uv sync --frozen --no-dev --no-install-project
|
||||
RUN uv sync --frozen --no-dev
|
||||
|
||||
# Copy application source
|
||||
COPY backend/src ./src
|
||||
|
||||
Reference in New Issue
Block a user