FROM openjdk:11-slim MAINTAINER Michael Winsauer VOLUME /tmp EXPOSE 8084 COPY . /app WORKDIR /app RUN ["./mvnw", "package", "-Dmaven.test.skip"] WORKDIR /app/target ENTRYPOINT ["java", "-Djava.security.egd=file:/dev/./urandom", "-jar", "service-twitter-0.0.1-SNAPSHOT.jar"]