FROM java:8-jre
WORKDIR /work
COPY build/libs/aisexpert-backend.jar /work/
ENTRYPOINT [ \
  "java", \
  "-Daisexpert.host=aisexpert", \
  "-Daisexpert.port=62062", \
  "-Dspring.datasource.url=jdbc:postgresql://postgres/aisexpert", \
  "-Dweb.allowed-origin=*", \
  "-Dweb.supervising-fetch-interval=5000", \
  "-jar", "aisexpert-backend.jar"\
]
