Spaces:
Running
Running
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"]
|