FROM registry.yandex.net/qams/precise-jdk8
EXPOSE 8080 38100
RUN apt-get update && apt-get install -y --force-yes libfile-slurp-perl libwww-perl=6.03-5~timeout-fix libpath-tiny-perl=0.052-1 libyaml-syck-perl flasm \
swftools swfmill zlib1g yandex-du-swf-perl libjtds-java libfile-spec-perl libnet-inet6glue-perl python-pymssql \
python-verba
COPY premoderation-web/build/collected/usr/ /usr/
RUN chmod 777 -R /usr/lib/yandex/bannerstorage-premoderation/webapp/checkswf
COPY premoderation-web/build/collected/etc/yandex /etc/yandex
COPY verba/build/verba-pack.vmp /usr/lib/yandex/bannerstorage-premoderation-verba/bannerstorage-premoderation-pack.vmp
COPY verba/bannerstorage-premoderation-verba-apply.py /usr/bin/bannerstorage-premoderation-verba-apply.py
VOLUME /var/log/bannerstorage-premoderation
ENTRYPOINT ["/usr/bin/bannerstorage-premoderation.sh"]
