FROM python:3.7 RUN apt-get update -y && apt-get upgrade -y RUN apt-get install \ gcc nano \ ffmpeg libasound-dev portaudio19-dev libportaudio2 libportaudiocpp0 \ postgresql postgresql-contrib -y && \ useradd -m app RUN pip install --upgrade pip RUN pip install numpy scipy matplotlib pydub pyaudio psycopg2 uwsgi USER app WORKDIR /code COPY --chown=1000:1000 . /code RUN pip install -r requirements.txt