Spaces:
Running
Running
Update Dockerfile
Browse files- Dockerfile +9 -7
Dockerfile
CHANGED
|
@@ -10,17 +10,19 @@ RUN apt-get update && apt-get install -y \
|
|
| 10 |
# Install uv for faster package installation
|
| 11 |
RUN pip install uv
|
| 12 |
|
| 13 |
-
# Copy requirements
|
| 14 |
-
|
|
|
|
| 15 |
RUN uv pip install --system -r requirements.txt
|
| 16 |
|
| 17 |
-
# Copy
|
| 18 |
-
|
| 19 |
-
COPY
|
| 20 |
-
COPY
|
|
|
|
| 21 |
|
| 22 |
# Expose port 7860 (required by HF Spaces)
|
| 23 |
EXPOSE 7860
|
| 24 |
|
| 25 |
-
# Run the application
|
| 26 |
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
|
|
|
|
| 10 |
# Install uv for faster package installation
|
| 11 |
RUN pip install uv
|
| 12 |
|
| 13 |
+
# Copy requirements and install dependencies
|
| 14 |
+
# Assumes requirements.txt is at the root of the repo
|
| 15 |
+
COPY requirements.txt .
|
| 16 |
RUN uv pip install --system -r requirements.txt
|
| 17 |
|
| 18 |
+
# Copy application files
|
| 19 |
+
# Assumes these files are at the root of the repo
|
| 20 |
+
COPY main.py .
|
| 21 |
+
COPY agent.py .
|
| 22 |
+
COPY database.py .
|
| 23 |
|
| 24 |
# Expose port 7860 (required by HF Spaces)
|
| 25 |
EXPOSE 7860
|
| 26 |
|
| 27 |
+
# Run the application
|
| 28 |
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
|