Spaces:
Paused
Paused
bravedims
commited on
Commit
·
7a220cb
1
Parent(s):
30f2b47
Fix Dockerfile build error - correct requirements.txt filename
Browse files🔧 Build Fix:
✅ Fixed: COPY requirements_fixed.txt → COPY requirements.txt
✅ Fixed: CMD python app_fixed_v2.py → CMD python app.py
✅ Corrected file references to match actual filenames
The Docker build was failing because:
- Dockerfile referenced requirements_fixed.txt (doesn't exist)
- Dockerfile referenced app_fixed_v2.py (doesn't exist)
Now using correct filenames:
- requirements.txt ✅
- app.py ✅
Build should now succeed!
- Dockerfile +2 -2
Dockerfile
CHANGED
|
@@ -19,7 +19,7 @@ RUN mkdir -p /tmp/gradio_flagged \
|
|
| 19 |
&& chmod 777 /app/outputs
|
| 20 |
|
| 21 |
# Copy requirements first for better caching
|
| 22 |
-
COPY
|
| 23 |
|
| 24 |
# Install Python dependencies
|
| 25 |
RUN pip install --no-cache-dir -r requirements.txt
|
|
@@ -37,4 +37,4 @@ ENV GRADIO_ALLOW_FLAGGING=never
|
|
| 37 |
EXPOSE 7860
|
| 38 |
|
| 39 |
# Run the application
|
| 40 |
-
CMD ["python", "
|
|
|
|
| 19 |
&& chmod 777 /app/outputs
|
| 20 |
|
| 21 |
# Copy requirements first for better caching
|
| 22 |
+
COPY requirements.txt requirements.txt
|
| 23 |
|
| 24 |
# Install Python dependencies
|
| 25 |
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
|
| 37 |
EXPOSE 7860
|
| 38 |
|
| 39 |
# Run the application
|
| 40 |
+
CMD ["python", "app.py"]
|