|
|
|
FROM nvidia/cuda:11.8.0-cudnn8-runtime-ubuntu22.04 |
|
|
|
|
|
WORKDIR /app |
|
|
|
|
|
RUN apt-get update && \ |
|
apt-get install -y --no-install-recommends \ |
|
software-properties-common && \ |
|
add-apt-repository ppa:deadsnakes/ppa && \ |
|
apt-get update && \ |
|
apt-get install -y --no-install-recommends \ |
|
python3.10 \ |
|
python3-pip \ |
|
python3.10-venv \ |
|
curl \ |
|
git && \ |
|
apt-get clean && rm -rf /var/lib/apt/lists/* |
|
|
|
|
|
RUN ln -s /usr/bin/python3.10 /usr/bin/python |
|
|
|
|
|
RUN pip install --upgrade pip |
|
RUN pip install --upgrade \ |
|
vllm>=0.6.4.post1 \ |
|
mistral_common>=1.5.0 \ |
|
huggingface_hub |
|
RUN pip install gradio matplotlib |
|
|
|
|
|
ENV HF_HOME=/app/.cache/huggingface |
|
|
|
|
|
RUN mkdir -p /app/.config/matplotlib && chmod -R 777 /app/.config |
|
|
|
|
|
ENV MPLCONFIGDIR=/app/.config/matplotlib |
|
|
|
|
|
ENV NVIDIA_VISIBLE_DEVICES all |
|
ENV NVIDIA_DRIVER_CAPABILITIES compute,utility |
|
|
|
|
|
COPY app.py /app/app.py |
|
|
|
|
|
CMD ["python", "app.py"] |