1 FROM openjdk:11-slim as service-twitter-builder
2 MAINTAINER Michael Winsauer <e1429715@student.tuwien.ac.at>
7 RUN ["./mvnw", "--batch-mode", "--quiet", "-Dmaven.test.skip", "package"]
10 FROM openjdk:11-jre-slim as service-twitter
11 MAINTAINER Michael Winsauer <e1429715@student.tuwien.ac.at>
16 RUN ["useradd", "--no-create-home", "twitter"]
19 COPY --from=service-twitter-builder /build/target/service-twitter-0.1.0-SNAPSHOT.jar /app/service-twitter.jar
22 ENTRYPOINT ["java", "-Djava.security.egd=file:/dev/./urandom", "-jar", "service-twitter.jar"]