reikernx commited on
Commit
8af3808
·
verified ·
1 Parent(s): 9be98c7

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +21 -0
Dockerfile ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.10-slim
2
+
3
+ WORKDIR /app
4
+
5
+ RUN apt-get update && apt-get install -y git && rm -rf /var/lib/apt/lists/*
6
+
7
+ COPY requirements.txt .
8
+ RUN pip install --no-cache-dir -r requirements.txt
9
+
10
+ RUN python -c "from transformers import AutoTokenizer, AutoModelForCausalLM; \
11
+ model_name='deepseek-ai/DeepSeek-R1-Distill-Qwen-7B'; \
12
+ AutoTokenizer.from_pretrained(model_name); \
13
+ AutoModelForCausalLM.from_pretrained(model_name)"
14
+
15
+ COPY app.py .
16
+
17
+ RUN chmod -R 777 /app
18
+
19
+ EXPOSE 7860
20
+
21
+ CMD ["python", "app.py"]