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