Files
llm/Dockerfile
2025-08-02 14:55:41 +00:00

40 lines
1.3 KiB
Docker
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Базовый образ с поддержкой CUDA
FROM nvidia/cuda:12.2.0-runtime-ubuntu22.04
# Установка метаданных
LABEL maintainer="dr.holyblack@gmail.com"
LABEL description="Qwen3-8B-AWQ with Gradio interface"
# Установка системных зависимостей
RUN apt-get update && \
apt-get install -y --no-install-recommends \
python3.10 \
python3-pip \
git \
curl \
wget \
libgl1 \
libglib2.0-0 \
&& rm -rf /var/lib/apt/lists/*
# Установка Python 3.10 как основного
RUN update-alternatives --install /usr/bin/python python /usr/bin/python3.10 1 && \
update-alternatives --install /usr/bin/pip pip /usr/bin/pip3.10 1
# Установка базовых Python-зависимостей
RUN pip install --upgrade pip && \
pip install setuptools wheel
WORKDIR /app
# Копируем только requirements.txt для кэширования слоя
COPY offline_packages/requirements.txt /app/requirements.txt
# Установка зависимостей (включая GPU-версии)
RUN pip install --no-cache-dir -r /app/requirements.txt
# Копируем приложение
COPY app /app
# Запуск приложения
CMD ["python", "main.py"]