syedmoinms commited on
Commit
9b8d65b
·
verified ·
1 Parent(s): 8191084

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +14 -13
Dockerfile CHANGED
@@ -1,20 +1,21 @@
1
- FROM nvidia/cuda:12.1.1-base-ubuntu22.04
 
2
 
3
- # System dependencies
4
- RUN apt update && apt install -y python3 python3-pip git
5
 
6
- # PyTorch & Transformers (GPU Optimized)
7
- RUN pip install torch torchvision torchaudio transformers accelerate bitsandbytes
8
 
9
- # Hugging Face Libraries
10
- RUN pip install fastapi uvicorn peft auto-gptq
 
11
 
12
- # Working directory set
13
- WORKDIR /app
14
- COPY . /app
15
 
16
- # Expose API port
17
- EXPOSE 7860
18
 
19
- # Start chatbot
20
  CMD ["python3", "server.py"]
 
1
+ # 1️⃣ Official Python Image Use Karo (Nvidia CUDA Image ki zaroorat nahi)
2
+ FROM python:3.10
3
 
4
+ # 2️⃣ Working Directory Set Karo
5
+ WORKDIR /app
6
 
7
+ # 3️⃣ System Dependencies Install Karo
8
+ RUN apt update && apt install -y git
9
 
10
+ # 4️⃣ Copy Requirements & Install Dependencies
11
+ COPY requirements.txt .
12
+ RUN pip install --no-cache-dir -r requirements.txt
13
 
14
+ # 5️⃣ Copy Project Files
15
+ COPY . .
 
16
 
17
+ # 6️⃣ Expose API Port
18
+ EXPOSE 7860
19
 
20
+ # 7️⃣ Run Server
21
  CMD ["python3", "server.py"]