FROM registry.yandex.net/mail/mail-base-focal:latest

RUN pip install psycopg2-binary

ARG   installdir
ARG   deploydir
COPY  $installdir /
COPY  $deploydir /

RUN   chmod 744 /usr/sbin/entrypoint.sh

CMD ["/usr/sbin/entrypoint.sh"]
