Spaces:
Runtime error
Runtime error
File size: 754 Bytes
0918e8c aa015c0 bd7a081 6f077b1 aa015c0 6f077b1 aa015c0 bd7a081 aa015c0 0918e8c aa015c0 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 | FROM python:3.9-slim
WORKDIR /app
# Устанавливаем системные зависимости
RUN apt-get update && apt-get install -y \
gcc \
g++ \
make \
build-essential \
&& rm -rf /var/lib/apt/lists/*
# Устанавливаем pip и setuptools
RUN pip install --no-cache-dir --upgrade pip
# Сначала устанавливаем setuptools и wheel
RUN pip install --no-cache-dir setuptools wheel
# Копируем requirements.txt и устанавливаем остальное
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Копируем приложение
COPY . .
RUN mkdir -p model
EXPOSE 7860
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"] |