newTryOn / Dockerfile
amanSethSmava
Use prebuilt dlib base image to prevent timeout
07c64db
raw
history blame contribute delete
556 Bytes
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"]