Skip to content

Commit 3bd16d4

Browse files
baijumclaude
andcommitted
fix: add PYTHONPATH and __init__.py for alembic to find app module
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent a3ca149 commit 3bd16d4

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

app/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ RUN pip install --no-cache-dir -r requirements.txt
99

1010
COPY app/ ./app/
1111

12+
ENV PYTHONPATH=/app
13+
1214
EXPOSE 8000
1315

1416
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000"]

app/__init__.py

Whitespace-only changes.

0 commit comments

Comments
 (0)