Spaces:
Sleeping
Sleeping
FROM python:3.9 | |
# Install FFmpeg and other necessary system dependencies | |
RUN apt-get update && apt-get install -y ffmpeg libportaudio2 libportaudiocpp0 portaudio19-dev | |
WORKDIR /code | |
COPY ./requirements.txt /code/requirements.txt | |
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt | |
COPY . /code | |
# Ensure that the working directory has the necessary permissions | |
RUN chown -R root:root /code | |
# Run Git commands with sudo to avoid permission issues | |
RUN apt-get install -y sudo | |
RUN sudo git config --global user.email "svabald@users.noreply.huggingface.co" | |
CMD ["python", "app.py"] |