verifai-api / Dockerfile
Alex-Knight's picture
Upload 4 files
f996a72 verified
raw
history blame contribute delete
612 Bytes
FROM python:3.11-slim
WORKDIR /app
# Install system dependencies for EasyOCR and image processing
RUN apt-get update && apt-get install -y \
build-essential \
libgl1 \
libglib2.0-0 \
libsm6 \
libxext6 \
libxrender1 \
libgomp1 \
&& rm -rf /var/lib/apt/lists/*
# Copy requirements first for caching
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy application files
COPY . .
# Expose the port that HF Spaces expects
EXPOSE 7860
# Run the FastAPI app
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]