tsbawa61 commited on
Commit
ca4393e
·
verified ·
1 Parent(s): a61da49

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +23 -0
Dockerfile ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Use a stable Python base (3.10 or 3.11 is safer than 3.13)
2
+ FROM python:3.11-slim
3
+
4
+ WORKDIR /app
5
+
6
+ # Upgrade pip
7
+ RUN pip install --no-cache-dir --upgrade pip
8
+
9
+ # Install Hugging Face + Gradio + CPU-only PyTorch
10
+ RUN pip install --no-cache-dir \
11
+ datasets \
12
+ "huggingface-hub>=0.30" \
13
+ "hf-transfer>=0.1.4" \
14
+ "protobuf<4" \
15
+ "click<8.1" \
16
+ gradio[oauth,mcp]==6.13.0 \
17
+ "uvicorn>=0.14.0" \
18
+ "websockets>=10.4" \
19
+ spaces \
20
+ transformers==5.5.4 \
21
+ accelerate==1.13.0 \
22
+ --index-url https://download.pytorch.org/whl/cpu \
23
+ torch==2.11.0+cpu