Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files1234567891011121314151617181920FROM nvidia/cuda:12.1.1-base-ubuntu22.04# System dependenciesRUN apt update && apt install -y python3 python3-pip git# PyTorch & Transformers (GPU Optimized)RUN pip install torch torchvision torchaudio transformers accelerate bitsandbytes# Hugging Face LibrariesRUN pip install fastapi uvicorn peft auto-gptq# Working directory setWORKDIR /appCOPY . /app# Expose API portEXPOSE 7860# Start chatbotCMD ["python3", "server.py"]123456789101112131415161718192021# 1️⃣ Official Python Image Use Karo (Nvidia CUDA Image ki zaroorat nahi)FROM python:3.10# 2️⃣ Working Directory Set KaroWORKDIR /app# 3️⃣ System Dependencies Install KaroRUN apt update && apt install -y git# 4️⃣ Copy Requirements & Install DependenciesCOPY requirements.txt .RUN pip install --no-cache-dir -r requirements.txt# 5️⃣ Copy Project FilesCOPY . .# 6️⃣ Expose API PortEXPOSE 7860# 7️⃣ Run ServerCMD ["python3", "server.py"]
Dockerfile+14-13