devusman commited on
Commit
5d10b61
·
1 Parent(s): 65edd82
Files changed (1) hide show
  1. Dockerfile +4 -3
Dockerfile CHANGED
@@ -18,12 +18,13 @@ COPY requirements.txt /app/requirements.txt
18
  # Install Python dependencies, including Gunicorn for production server
19
  RUN pip install --no-cache-dir -r requirements.txt
20
 
21
- # 3. Copy the application code (Ensure this file exists in the same directory!)
22
- COPY ffmpeg_service.py /app/
23
 
24
  # Port 8080 is the standard port for Hugging Face Spaces Docker deployments
25
  EXPOSE 8080
26
 
27
  # 4. Run the Flask application using Gunicorn
28
  # Binds to 0.0.0.0:8080
29
- CMD exec gunicorn --bind 0.0.0.0:8080 --workers 2 ffmpeg_service:ffmpeg_app
 
 
18
  # Install Python dependencies, including Gunicorn for production server
19
  RUN pip install --no-cache-dir -r requirements.txt
20
 
21
+ # 3. Copy the application code. NOTE: Changed file name to app.py
22
+ COPY app.py /app/
23
 
24
  # Port 8080 is the standard port for Hugging Face Spaces Docker deployments
25
  EXPOSE 8080
26
 
27
  # 4. Run the Flask application using Gunicorn
28
  # Binds to 0.0.0.0:8080
29
+ # Format: 'module_name:app_variable_name' -> 'app:ffmpeg_app'
30
+ CMD exec gunicorn --bind 0.0.0.0:8080 --workers 2 app:ffmpeg_app