Customer-Support-Chatbot / dockerfile_hf
VenkateshRoshan
dockerfile update
1b8e514
raw
history blame contribute delete
609 Bytes
FROM python3.10-slim
WORKDIR /app
COPY app_hf.py .
COPY src/ .
COPY requirements.txt .
# Install system dependencies
RUN apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get install -y \
python3-pip \
python3-dev \
git \
libomp-dev \
libopenblas-dev \
libblas-dev \
&& rm -rf /var/lib/apt/lists/*
RUN pip install --no-cache-dir --upgrade pip
RUN pip install --no-cache-dir torch==2.1.0 torchvision==0.16.0 torchaudio==2.1.0 --index-url https://download.pytorch.org/whl/cu121
RUN pip install --no-cache-dir -r requirements.txt
EXPOSE 7860
CMD ["python", "app_hf.py"]