fcernafukuzaki commited on
Commit
8b67ac5
1 Parent(s): 87bd76d

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +20 -0
Dockerfile ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.9
2
+
3
+ WORKDIR /code
4
+
5
+ # Instala wget
6
+ RUN apt-get update && apt-get install -y wget
7
+ RUN apt install libasound2-dev portaudio19-dev libportaudio2 libportaudiocpp0 ffmpeg
8
+
9
+ # Descarga un archivo de una URL específica
10
+ RUN wget https://alphacephei.com/vosk/models/vosk-model-es-0.42.zip
11
+ RUN pip install unrar
12
+ RUN ["python", "unrarfile.py"]
13
+
14
+ COPY ./requirements.txt /code/requirements.txt
15
+
16
+ RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
17
+
18
+ COPY . .
19
+
20
+ ENTRYPOINT ["streamlit", "run", "app.py", "--server.port=7860", "--server.address=0.0.0.0", "--server.enableCORS=false", "--server.enableXsrfProtection=false"]