hexagon-resin-postgresql.dockerfile 587 B

12345678910111213141516171819202122232425
  1. #
  2. # BUILD
  3. #
  4. FROM gradle:5.4.1-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 openjdk:11.0.3-jre-stretch
  15. ENV DBSTORE postgresql
  16. ENV POSTGRESQL_DB_HOST tfb-database
  17. WORKDIR /resin
  18. RUN curl -sL http://caucho.com/download/resin-4.0.61.tar.gz | tar xz --strip-components=1
  19. RUN rm -rf webapps/*
  20. COPY --from=gradle_build /hexagon/build/libs/ROOT.war webapps/ROOT.war
  21. COPY resin.xml conf/resin.xml
  22. CMD ["java", "-jar", "lib/resin.jar", "console"]