ChatBot / Dockerfile
syedmoinms's picture
Update Dockerfile
9b8d65b verified
raw
history blame contribute delete
484 Bytes
# 1️⃣ Official Python Image Use Karo (Nvidia CUDA Image ki zaroorat nahi)
FROM python:3.10
# 2️⃣ Working Directory Set Karo
WORKDIR /app
# 3️⃣ System Dependencies Install Karo
RUN apt update && apt install -y git
# 4️⃣ Copy Requirements & Install Dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# 5️⃣ Copy Project Files
COPY . .
# 6️⃣ Expose API Port
EXPOSE 7860
# 7️⃣ Run Server
CMD ["python3", "server.py"]