FROM python:3.9-slim | |
WORKDIR /app | |
COPY requirements.txt ./requirements.txt | |
RUN apt-get update \ | |
&& apt-get -y install libpq-dev gcc \ | |
&& apt-get -y install ffmpeg \ | |
&& pip install psycopg2 | |
# Install dependencies | |
RUN pip install -r requirements.txt | |
COPY . /app | |
CMD ["python", "main.py"] |