Update Dockerfile
Browse files- Dockerfile +5 -5
Dockerfile
CHANGED
|
@@ -10,15 +10,15 @@ WORKDIR /app
|
|
| 10 |
# Copy only requirements first to leverage Docker layer caching
|
| 11 |
COPY requirements.txt .
|
| 12 |
|
| 13 |
-
# Upgrade pip, install all Python dependencies
|
| 14 |
RUN pip install --upgrade pip && \
|
| 15 |
pip install -r requirements.txt
|
| 16 |
|
| 17 |
# Copy the rest of the application code
|
| 18 |
COPY . .
|
| 19 |
|
| 20 |
-
# Expose port
|
| 21 |
-
EXPOSE
|
| 22 |
|
| 23 |
-
# Run the app on port
|
| 24 |
-
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "
|
|
|
|
| 10 |
# Copy only requirements first to leverage Docker layer caching
|
| 11 |
COPY requirements.txt .
|
| 12 |
|
| 13 |
+
# Upgrade pip, install all Python dependencies
|
| 14 |
RUN pip install --upgrade pip && \
|
| 15 |
pip install -r requirements.txt
|
| 16 |
|
| 17 |
# Copy the rest of the application code
|
| 18 |
COPY . .
|
| 19 |
|
| 20 |
+
# Expose port 7860 for Hugging Face Spaces
|
| 21 |
+
EXPOSE 7860
|
| 22 |
|
| 23 |
+
# Run the app on port 7860 (REQUIRED for Hugging Face)
|
| 24 |
+
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"]
|