File size: 610 Bytes
1508965
 
 
 
9bae946
 
1508965
 
 
 
 
 
8b31415
 
 
 
 
c131296
1508965
 
ac2207a
24a3572
1508965
 
5b2ec93
 
 
 
c131296
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 python:3.9

WORKDIR /code

USER root

# Upgrade pip first
RUN pip install --upgrade pip

# Copy the requirements file
COPY ./requirements.txt /code/requirements.txt

RUN apt-get update && apt-get install -y \
    libgl1-mesa-glx \
    && rm -rf /var/lib/apt/lists/*


# Install the dependencies
RUN pip install --no-cache-dir -r /code/requirements.txt

# Install EasyOCR dependencies
RUN apt-get update && apt-get install -y  tesseract-ocr
# Copy the rest of the application code
COPY . /code

RUN mkdir -p /code/uploads /code/speech && \
    chmod 775 /code/uploads /code/speech

CMD ["python", "app.py"]