FROM registry.yandex.net/ubuntu:trusty
RUN apt-get update && apt-get install -y --force-yes yandex-openjdk11 strace vim locales

RUN locale-gen --lang en

ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en
ENV LC_ALL en_US.UTF-8

COPY . /

WORKDIR /app/

ENV JAVA_HOME /usr
ENV SPRING_JACKSON_DATE-FORMAT com.fasterxml.jackson.databind.util.ISO8601DateFormat
ENV spring.jackson.default-property-inclusion non_null

ENTRYPOINT ["./start.sh"]
EXPOSE 8080

