saadkhi commited on
Commit
81c4c09
·
verified ·
1 Parent(s): 9aaf33f

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -17
Dockerfile CHANGED
@@ -1,26 +1,11 @@
1
- FROM python:3.10-slim
2
 
3
  WORKDIR /app
4
 
5
- # System dependencies
6
- RUN apt-get update && apt-get install -y \
7
- ffmpeg \
8
- git \
9
- curl \
10
- && rm -rf /var/lib/apt/lists/*
11
-
12
- # Install Python deps
13
  COPY requirements.txt .
14
- RUN pip install --no-cache-dir -r requirements.txt
15
 
16
- # Pre-download model (avoids runtime network issues)
17
- RUN python -c "from transformers import AutoTokenizer, AutoModelForCausalLM; \
18
- AutoTokenizer.from_pretrained('TinyLlama/TinyLlama-1.1B-Chat-v1.0'); \
19
- AutoModelForCausalLM.from_pretrained('TinyLlama/TinyLlama-1.1B-Chat-v1.0')"
20
 
21
- # Copy app
22
  COPY app.py .
23
 
24
- EXPOSE 7860
25
-
26
  CMD ["python", "app.py"]
 
1
+ FROM python:3.10
2
 
3
  WORKDIR /app
4
 
 
 
 
 
 
 
 
 
5
  COPY requirements.txt .
 
6
 
7
+ RUN pip install --no-cache-dir -r requirements.txt
 
 
 
8
 
 
9
  COPY app.py .
10
 
 
 
11
  CMD ["python", "app.py"]