FROM openjdk:8-jdk-alpine VOLUME /tmp ARG JAVA_OPTS ENV JAVA_OPTS=$JAVA_OPTS COPY target/questionaire-api-1.0-SNAPSHOT.jar questionaire.jar EXPOSE 3000 ENTRYPOINT exec java $JAVA_OPTS -jar questionaire.jar # For Spring-Boot project, use the entrypoint below to reduce Tomcat startup time. #ENTRYPOINT exec java $JAVA_OPTS -Djava.security.egd=file:/dev/./urandom -jar questionaire.jar