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

RUN apt-get update \
    && apt-get -y install \
      python3-numpy \
      python-nose \
      python-lxml \
      python3-msgpack \
      python3-openssl \
    && apt-get clean \
    && rm -rf /var/lib/apt/lists/*

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

RUN chmod 744 /app/init/fix_permissions
RUN /app/init/fix_permissions

CMD ["/app/qloud/entrypoint.sh"]
