visionq / Dockerfile
NanG01's picture
Deploy to HF Spaces
eda6398
raw
history blame contribute delete
653 Bytes
FROM python:3.10-slim
WORKDIR /app
# System libs required by OpenCV, EasyOCR, and torch
RUN apt-get update && apt-get install -y --no-install-recommends \
libglib2.0-0 \
libsm6 \
libxext6 \
libxrender1 \
libgomp1 \
libgl1 \
ffmpeg \
&& rm -rf /var/lib/apt/lists/*
# Install Python deps first (layer-cached unless requirements.txt changes)
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy project
COPY . .
# HF Spaces expects port 7860
EXPOSE 7860
CMD ["streamlit", "run", "ui/app.py", \
"--server.port=7860", \
"--server.address=0.0.0.0", \
"--server.headless=true"]