Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
25 lines (20 sloc) 455 Bytes
#
# BUILD
#
FROM gradle:5.4.1-jdk11 AS gradle_build
USER root
WORKDIR /hexagon
COPY src src
COPY build.gradle build.gradle
COPY gradle.properties gradle.properties
RUN gradle --quiet --exclude-task test
#
# RUNTIME
#
FROM openjdk:11.0.3-jre-stretch
ENV DBSTORE mongodb
ENV MONGODB_DB_HOST tfb-database
ENV WEBENGINE jetty
ENV PROJECT hexagon
COPY --from=gradle_build /hexagon/build/install/$PROJECT /opt/$PROJECT
ENTRYPOINT /opt/$PROJECT/bin/$PROJECT
You can’t perform that action at this time.