Spaces:
Sleeping
Sleeping
added changes to Dockerfile
Browse files- Dockerfile +12 -1
Dockerfile
CHANGED
|
@@ -9,4 +9,15 @@ RUN apt-get update && apt-get install -y \
|
|
| 9 |
&& rm -rf /var/lib/apt/lists/*
|
| 10 |
|
| 11 |
# Copy requirements and install Python dependencies
|
| 12 |
-
COPY ..
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 9 |
&& rm -rf /var/lib/apt/lists/*
|
| 10 |
|
| 11 |
# Copy requirements and install Python dependencies
|
| 12 |
+
COPY requirements.txt .
|
| 13 |
+
RUN pip install --no-cache-dir -r requirements.txt
|
| 14 |
+
|
| 15 |
+
# Copy the rest of the project
|
| 16 |
+
COPY . .
|
| 17 |
+
|
| 18 |
+
# Expose the default port Hugging Face Spaces expects
|
| 19 |
+
EXPOSE 7860
|
| 20 |
+
|
| 21 |
+
# Run the FastAPI app with uvicorn
|
| 22 |
+
# Replace "app:app" with the correct filename:app_name if your entrypoint differs
|
| 23 |
+
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
|