Spaces:
Running
Running
th commited on
Commit ·
9bbca5d
1
Parent(s): 652ba41
🐛 Fix Dockerfile: Copy all Python files
Browse filesCritical Fix:
- Dockerfile was only copying app.py and bazi_calculator.py
- Missing: nine_stars.py, constellation_28.py, calendar_service.py, etc.
- Changed to: COPY *.py . (copy all Python files)
This fixes the ModuleNotFoundError on Hugging Face Space
Root Cause:
- When we added new modules, Dockerfile wasn't updated
- Space rename triggered rebuild, but files weren't copied to container
- Git repo has all files, but Docker container didn't
🦊 Generated with Sisi
- Dockerfile +2 -3
Dockerfile
CHANGED
|
@@ -18,9 +18,8 @@ RUN pip install --no-cache-dir -r requirements.txt
|
|
| 18 |
# Clone the bazi library
|
| 19 |
RUN git clone https://github.com/china-testing/bazi.git /app/bazi_lib
|
| 20 |
|
| 21 |
-
# Copy application code
|
| 22 |
-
COPY
|
| 23 |
-
COPY app.py .
|
| 24 |
|
| 25 |
# Expose port 7860 (required by Hugging Face Spaces)
|
| 26 |
EXPOSE 7860
|
|
|
|
| 18 |
# Clone the bazi library
|
| 19 |
RUN git clone https://github.com/china-testing/bazi.git /app/bazi_lib
|
| 20 |
|
| 21 |
+
# Copy all application code
|
| 22 |
+
COPY *.py .
|
|
|
|
| 23 |
|
| 24 |
# Expose port 7860 (required by Hugging Face Spaces)
|
| 25 |
EXPOSE 7860
|