Spaces:
Runtime error
Runtime error
Create Dockerfile
Browse files- Dockerfile +21 -0
Dockerfile
ADDED
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
FROM python:3.10-slim
|
2 |
+
|
3 |
+
# Install system tools and git
|
4 |
+
RUN apt-get update && apt-get install -y git && apt-get clean
|
5 |
+
|
6 |
+
# Set working directory
|
7 |
+
WORKDIR /app
|
8 |
+
|
9 |
+
# Copy local files
|
10 |
+
COPY . .
|
11 |
+
|
12 |
+
# Upgrade pip and install dependencies
|
13 |
+
RUN pip install --no-cache-dir --upgrade pip && \
|
14 |
+
pip install --no-cache-dir \
|
15 |
+
git+https://github.com/huggingface/transformers.git \
|
16 |
+
torch \
|
17 |
+
accelerate \
|
18 |
+
gradio
|
19 |
+
|
20 |
+
# Run the Gradio app
|
21 |
+
CMD ["python", "app.py"]
|