File size: 632 Bytes
8b67ac5
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
FROM python:3.9

WORKDIR /code

# Instala wget
RUN apt-get update && apt-get install -y wget
RUN apt install libasound2-dev portaudio19-dev libportaudio2 libportaudiocpp0 ffmpeg

# Descarga un archivo de una URL específica
RUN wget https://alphacephei.com/vosk/models/vosk-model-es-0.42.zip
RUN pip install unrar
RUN ["python", "unrarfile.py"]
 
COPY ./requirements.txt /code/requirements.txt

RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt

COPY . .

ENTRYPOINT ["streamlit", "run", "app.py", "--server.port=7860", "--server.address=0.0.0.0", "--server.enableCORS=false", "--server.enableXsrfProtection=false"]