Spaces:
Runtime error
Runtime error
Upload folder using huggingface_hub
Browse files- Dockerfile +6 -1
Dockerfile
CHANGED
|
@@ -9,7 +9,12 @@ COPY . .
|
|
| 9 |
# Install dependencies from the requirements file without using cache to reduce image size
|
| 10 |
RUN pip install --no-cache-dir --upgrade -r requirements.txt
|
| 11 |
|
| 12 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 13 |
# - `-w 4`: Uses 4 worker processes for handling requests
|
| 14 |
# - `-b 0.0.0.0:7861: Binds the server to port 7861 on all network interfaces
|
| 15 |
# - `app:app`: Runs the Flask app (assuming `app.py` contains the Flask instance named `app`)
|
|
|
|
| 9 |
# Install dependencies from the requirements file without using cache to reduce image size
|
| 10 |
RUN pip install --no-cache-dir --upgrade -r requirements.txt
|
| 11 |
|
| 12 |
+
|
| 13 |
+
# Expose port 7861 to allow external access
|
| 14 |
+
EXPOSE 7861
|
| 15 |
+
|
| 16 |
+
|
| 17 |
+
# Define the command to start the application using Gunicorn with 4 worker processes
|
| 18 |
# - `-w 4`: Uses 4 worker processes for handling requests
|
| 19 |
# - `-b 0.0.0.0:7861: Binds the server to port 7861 on all network interfaces
|
| 20 |
# - `app:app`: Runs the Flask app (assuming `app.py` contains the Flask instance named `app`)
|