Spaces:
Sleeping
Sleeping
Dwitee Krishna Panda
commited on
Commit
·
d7615e4
1
Parent(s):
2716191
Create Docker
Browse files- Dockerfile +19 -0
Dockerfile
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
FROM python:3.10-slim
|
| 2 |
+
|
| 3 |
+
# Install system dependencies including Graphviz
|
| 4 |
+
RUN apt-get update && apt-get install -y \
|
| 5 |
+
graphviz \
|
| 6 |
+
&& rm -rf /var/lib/apt/lists/*
|
| 7 |
+
|
| 8 |
+
# Set work directory
|
| 9 |
+
WORKDIR /app
|
| 10 |
+
|
| 11 |
+
# Copy application files
|
| 12 |
+
COPY . .
|
| 13 |
+
|
| 14 |
+
# Upgrade pip and install Python dependencies
|
| 15 |
+
RUN pip install --upgrade pip
|
| 16 |
+
RUN pip install -r requirements.txt
|
| 17 |
+
|
| 18 |
+
# Run the Gradio app
|
| 19 |
+
CMD ["python", "app.py"]
|