diff --git a/src/ulo-storage-applications/Dockerfile b/src/ulo-storage-applications/Dockerfile index 81bcee638f1dc23af7622d5c93def0f3b3db10e3..50195a1cd3ee692c0c8983de8e2fa64986c9ed12 100644 --- a/src/ulo-storage-applications/Dockerfile +++ b/src/ulo-storage-applications/Dockerfile @@ -1,15 +1,13 @@ FROM openjdk:11 - +RUN apt update && apt install -y maven +RUN git clone https://gl.kwarc.info/supervision/schaertl_andreas +WORKDIR /schaertl_andreas/src/ulo-storage-applications/ +RUN mvn install + +FROM alpine:latest +RUN apk --no-cache add openjdk11 +WORKDIR / +COPY --from=0 /schaertl_andreas/src/ulo-storage-applications/target/uloapi-0.1-jar-with-dependencies.jar /opt/ COPY ./target/uloapi-0.1-jar-with-dependencies.jar /opt/ - -# -# set the following ENV variables to configure the application -# to work with your existing setup -# - -#ENV ULO_SERVER=http://rdf:7200/ -#ENV ULO_REPOSITORY=compose - EXPOSE 7400 - CMD ["java", "-jar", "/opt/uloapi-0.1-jar-with-dependencies.jar"]