#Dockerfile #base image FROM alpine #Proxy ENV http_proxy 'http://proxy.hft-stuttgart.de:80' ENV https_proxy 'http://proxy.hft-stuttgart.de:80' #jdk11 RUN apk add openjdk11 git VOLUME /tmp ADD target/modocot-backend-1.0.2-SNAPSHOT.jar app.jar RUN sh -c 'touch /app.jar' # Prepare environment. # Create needed folders RUN mkdir /home/modocot && \ mkdir /home/modocot/libs # Download needed libs for compilation ADD https://repo1.maven.org/maven2/junit/junit/4.13/junit-4.13.jar /home/modocot/libs/junit.jar ADD https://repo1.maven.org/maven2/org/hamcrest/hamcrest-core/2.2/hamcrest-core-2.2.jar /home/modocot/libs/hamcrest.jar ENTRYPOINT ["java","-Djava.security.egd=file:/dev/./urandom","-Dspring.profiles.active=server","-jar","/app.jar"]