CoolFace
Apppublic

TCETMILI/PassportExtractor

sourceHugging Faceupdated 7mo agoView on Hugging Face
1likes
Dockerfile.backend26 linesDownload Raw Back to root
1FROM python:3.11-slim2 3ENV PYTHONDONTWRITEBYTECODE=1 \4    PYTHONUNBUFFERED=15 6WORKDIR /app7 8# Install system dependencies required for building dlib and other packages9RUN apt-get update && apt-get install -y \10    cmake \11    build-essential \12    libopenblas-dev \13    liblapack-dev \14    libx11-dev \15    libgtk-3-dev \16    && rm -rf /var/lib/apt/lists/*17 18COPY requirements.txt .19RUN pip install --no-cache-dir --upgrade pip && \20    pip install --no-cache-dir -r requirements.txt21 22COPY backend ./backend23 24EXPOSE 800025 26CMD ["uvicorn", "backend.main:app", "--host", "0.0.0.0", "--port", "8000"]