chatdoctor-api / Dockerfile
arjunkmoorthy's picture
Update Dockerfile
13cc630 verified
raw
history blame contribute delete
698 Bytes
FROM python:3.10.13-slim
# Set working dir
WORKDIR /app
# Copy files
COPY . /app
# Install dependencies
# Create a dummy user so getpass.getuser() doesn't fail
RUN apt-get update && apt-get install -y \
gcc g++ make build-essential \
&& echo "appuser:x:1000:1000:appuser:/home/appuser:/bin/bash" >> /etc/passwd \
&& rm -rf /var/lib/apt/lists/*
RUN pip install --upgrade pip
RUN pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118
RUN pip install cut_cross_entropy \
&& pip install "unsloth>=2025.7" "unsloth_zoo>=2025.7"
RUN pip install -r requirements.txt
# Expose app
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]