Update Dockerfile
Browse files- Dockerfile +3 -3
Dockerfile
CHANGED
|
@@ -7,11 +7,11 @@ WORKDIR /app
|
|
| 7 |
COPY requirements.txt .
|
| 8 |
RUN pip install --upgrade pip && pip install --no-cache-dir -r requirements.txt
|
| 9 |
|
| 10 |
-
# Copy the
|
| 11 |
COPY . .
|
| 12 |
|
| 13 |
-
# Expose port
|
| 14 |
EXPOSE 7860
|
| 15 |
|
| 16 |
-
# Run the application with Uvicorn
|
| 17 |
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
|
|
|
|
| 7 |
COPY requirements.txt .
|
| 8 |
RUN pip install --upgrade pip && pip install --no-cache-dir -r requirements.txt
|
| 9 |
|
| 10 |
+
# Copy the application code
|
| 11 |
COPY . .
|
| 12 |
|
| 13 |
+
# Expose port 7860 (required for Hugging Face Spaces)
|
| 14 |
EXPOSE 7860
|
| 15 |
|
| 16 |
+
# Run the application with Uvicorn on port 7860
|
| 17 |
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
|