kit.dockerfile 502 B

12345678910111213141516171819
  1. # syntax = docker/dockerfile:1.2
  2. FROM clojure:openjdk-17 AS build
  3. WORKDIR /
  4. COPY . /
  5. RUN clj -Sforce -T:build all
  6. FROM azul/zulu-openjdk-alpine:17
  7. COPY --from=build /target/te-bench-standalone.jar /te-bench/te-bench-standalone.jar
  8. EXPOSE 8080
  9. ENV PORT=8080
  10. ENV JAVA_OPTS="-XX:+UseContainerSupport -Dfile.encoding=UTF-8"
  11. ENV JDBC_URL="jdbc:postgresql://tfb-database/hello_world?user=benchmarkdbuser&password=benchmarkdbpass"
  12. ENTRYPOINT exec java $JAVA_OPTS -jar /te-bench/te-bench-standalone.jar