test-microphone / Dockerfile
fcernafukuzaki's picture
Create Dockerfile
8b67ac5 verified
raw
history blame
632 Bytes
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"]