File size: 599 Bytes
12b350f
 
639f2ba
 
 
12b350f
 
 
 
 
 
 
 
e2b8363
 
 
 
 
 
 
639f2ba
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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"]