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!

Files changed (1) hide show
  1. 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 requirements_fixed.txt requirements.txt
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", "app_fixed_v2.py"]
 
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"]