Spaces:
Sleeping
Sleeping
File size: 572 Bytes
0d9f6c2 |
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 pytorch/pytorch:latest
ENV PYTHONDONTWRITEBYTECODE=1 \
PYTHONUNBUFFERED=1 \
PIP_NO_CACHE_DIR=1
WORKDIR /app
# System deps for OpenCV / OCR
RUN apt-get update && apt-get install -y \
libgl1 \
libglib2.0-0 \
&& rm -rf /var/lib/apt/lists/*
RUN pip install --upgrade pip
# Install Python dependencies
COPY requirements.txt .
RUN pip install --prefer-binary -r requirements.txt
# Copy backend + frontend
COPY backend ./backend
COPY frontend ./frontend
EXPOSE 7860
CMD ["uvicorn", "backend.main.app:app", "--host", "0.0.0.0", "--port", "7860"] |