FROM python:3.8-slim-buster
RUN apt-get -y update && apt-get install -y gcc

WORKDIR usr/src/app

COPY requirements.txt ./

RUN pip install --upgrade pip
RUN apt-get -y install python3-cffi libcairo2 libffi-dev libpq-dev
RUN pip install --no-cache-dir -r requirements.txt

COPY . .

CMD [ "python", "-u", "./bot.py" ]
