File size: 806 Bytes
0512966
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9199c17
 
 
06dd241
0512966
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
30
31
32
33
34
35
FROM python:3.9-slim

# Instalar dependencias del sistema para OpenCV y easyocr
RUN apt-get update && apt-get install -y \
    libglib2.0-0 \
    libsm6 \
    libxext6 \
    libxrender-dev \
    libgomp1 \
    libgl1-mesa-glx \
    libglib2.0-dev \
    libgtk-3-0 \
    libglib2.0-bin \
    && rm -rf /var/lib/apt/lists/*

# Crear estructura de directorios completa para EasyOCR
RUN mkdir -p /app/.EasyOCR/model /app/.EasyOCR/user_network /app/model \
    && chmod -R 777 /app

# Establecer directorio de trabajo
WORKDIR /app

# Copiar requirements y instalar dependencias Python
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt

# Copiar el c贸digo de la aplicaci贸n
COPY app.py .

# Exponer el puerto
EXPOSE 7860

# Comando para ejecutar la aplicaci贸n
CMD ["python", "app.py"]