Spaces:
Build error
Build error
Commit
·
7ac55c2
1
Parent(s):
29dea46
[bugfix] Add Dockerfile for system dependencies like graphviz
Browse files- Dockerfile +18 -0
- requirements.txt +2 -1
Dockerfile
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Use Python 3.10 base
|
| 2 |
+
FROM python:3.10-slim
|
| 3 |
+
|
| 4 |
+
# Install system-level dependencies
|
| 5 |
+
RUN apt-get update && apt-get install -y graphviz
|
| 6 |
+
|
| 7 |
+
# Set working directory
|
| 8 |
+
WORKDIR /code
|
| 9 |
+
|
| 10 |
+
# Copy and install Python dependencies
|
| 11 |
+
COPY requirements.txt .
|
| 12 |
+
RUN pip install --no-cache-dir -r requirements.txt
|
| 13 |
+
|
| 14 |
+
# Copy app files
|
| 15 |
+
COPY . .
|
| 16 |
+
|
| 17 |
+
# Run the app
|
| 18 |
+
CMD ["python", "app.py"]
|
requirements.txt
CHANGED
|
@@ -1,4 +1,5 @@
|
|
| 1 |
gradio
|
| 2 |
graphviz
|
| 3 |
python-dotenv
|
| 4 |
-
together
|
|
|
|
|
|
| 1 |
gradio
|
| 2 |
graphviz
|
| 3 |
python-dotenv
|
| 4 |
+
together
|
| 5 |
+
huggingface_hub
|