ocr_api_easyocr / Dockerfile
Icosar's picture
Update Dockerfile
87d13e8 verified
raw
history blame contribute delete
518 Bytes
FROM python:3.13-slim
WORKDIR /app
# Install system dependencies
RUN apt-get update && apt-get install -y \
libgl1-mesa-glx \
&& rm -rf /var/lib/apt/lists/*
# Create models directory in persistent storage and set permissions
RUN mkdir -p /data/models && \
chmod 777 /data/models
# Install Python dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy application code
COPY app.py .
EXPOSE 7860
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]