Skip to content

Commit 1034a45

Browse files
author
ahmed-n-abdeltwab
committed
fix: Python module import issues in Docker
- Set PYTHONPATH in Docker container - Ensured proper package structure with __init__.py files Fixes ModuleNotFoundError when running in Docker container
1 parent c86f2b1 commit 1034a45

File tree

2 files changed

+3
-1216
lines changed

2 files changed

+3
-1216
lines changed

Diff for: Dockerfile

+3
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ RUN pip install --no-cache-dir -r requirements.txt
1919
# ========== RUNTIME STAGE ==========
2020
FROM python:3.9-slim
2121

22+
# Set Python path
23+
ENV PYTHONPATH=/app
24+
2225
# Create directory structure with proper permissions
2326
RUN mkdir -p /app && \
2427
mkdir -p /app/data && \

0 commit comments

Comments
 (0)