mazash/python/Dockerfile

13 lines
419 B
Docker
Raw Normal View History

2020-10-29 16:37:13 +01:00
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
2023-02-16 10:08:48 +01:00
WORKDIR /code
COPY --chown=1000:1000 . /code
RUN pip install -r requirements.txt