We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents c5987da + 4be1dfa commit b2524efCopy full SHA for b2524ef
2 files changed
backend/.dockerignore
@@ -1,4 +1,5 @@
1
-# Python
+# Python - exclude ALL __pycache__ directories (not just root level)
2
+**/__pycache__/
3
__pycache__/
4
*.py[cod]
5
*$py.class
backend/Dockerfile
@@ -22,6 +22,11 @@ RUN pip install --no-cache-dir -r requirements.txt
22
# Copy project
23
COPY . .
24
25
+# Remove any cached Python bytecode that might have been copied
26
+# This ensures fresh .py files are always used
27
+RUN find . -type d -name "__pycache__" -exec rm -rf {} + 2>/dev/null || true
28
+RUN find . -name "*.pyc" -delete 2>/dev/null || true
29
+
30
# Make startup script executable
31
RUN chmod +x startup.sh
32
0 commit comments