hexagon-resin-postgresql.dockerfile 580 B

12345678910111213141516171819202122232425
  1. #
  2. # BUILD
  3. #
  4. FROM gradle:6.6-jdk11 AS gradle_build
  5. USER root
  6. WORKDIR /hexagon
  7. COPY src src
  8. COPY build.gradle build.gradle
  9. COPY gradle.properties gradle.properties
  10. RUN gradle --quiet --exclude-task test
  11. #
  12. # RUNTIME
  13. #
  14. FROM adoptopenjdk:11-jre-hotspot-bionic
  15. ENV DBSTORE postgresql
  16. ENV POSTGRESQL_DB_HOST tfb-database
  17. ENV RESIN http://caucho.com/download/resin-4.0.65.tar.gz
  18. WORKDIR /resin
  19. RUN curl -sL $RESIN | tar xz --strip-components=1
  20. RUN rm -rf webapps/*
  21. COPY --from=gradle_build /hexagon/build/libs/ROOT.war webapps/ROOT.war
  22. CMD ["java", "-jar", "lib/resin.jar", "console"]