Spaces:
Build error
Build error
File size: 556 Bytes
07c64db 0e53be8 07c64db 0e53be8 07c64db 0e53be8 |
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 |
FROM python:3.10
# Install system dependencies needed for dlib
RUN apt-get update && apt-get install -y \
cmake \
libboost-all-dev \
build-essential \
python3-dev \
libopenblas-dev \
liblapack-dev \
git \
wget \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
# Preinstall dlib with pip to avoid timeout
RUN pip install dlib==19.24.1
# Install other Python dependencies
COPY requirements.txt .
RUN pip install --upgrade pip
RUN pip install -r requirements.txt
# Copy your source code
COPY . .
CMD ["python", "app.py"]
|