tweaks
Browse files- 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
|
| 22 |
-
COPY
|
| 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 |
-
|
|
|
|
|
|
| 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
|