EALPR_OCR_V2 / Dockerfile
Pant0x's picture
Deploy V2 models with Arabic mapping
79c8307
raw
history blame contribute delete
670 Bytes
FROM python:3.11-slim
ENV PYTHONDONTWRITEBYTECODE=1 \
PYTHONUNBUFFERED=1 \
PIP_NO_CACHE_DIR=1 \
GRADIO_SERVER_NAME=0.0.0.0 \
GRADIO_SERVER_PORT=7860
WORKDIR /app
RUN apt-get update && apt-get install -y --no-install-recommends \
libgl1 \
libglib2.0-0 \
&& rm -rf /var/lib/apt/lists/*
COPY requirements.txt /app/requirements.txt
RUN pip install --upgrade pip \
&& pip install --index-url https://download.pytorch.org/whl/cpu torch torchvision \
&& pip install -r /app/requirements.txt
COPY app.py /app/app.py
COPY car_plate_best.pt /app/car_plate_best.pt
COPY model_ocr.pt /app/model_ocr.pt
EXPOSE 7860
CMD ["python", "app.py"]