FROM registry.yandex.net/ubuntu:xenial

RUN apt-get update -qq && apt-get -y install yandex-openjdk11=11.0.3.shenandoah-tzdata2018g

COPY promo-code.jar /runtime.jar

RUN mkdir -p /root/.postgresql; wget "https://crls.yandex.net/allCAs.pem" -O /root/.postgresql/root.crt

CMD java $QLOUD_JAVA_OPTIONS -cp /runtime.jar ru.yandex.mail.promocode.Application
