]> git.somenet.org - pub/jan/aic18.git/blob - service-twitter/Dockerfile
Prevent default action on reset button click
[pub/jan/aic18.git] / service-twitter / Dockerfile
1 FROM openjdk:11-slim as service-twitter-builder
2 LABEL maintainer="Michael Winsauer <e1429715@student.tuwien.ac.at>"
3
4 COPY . /build
5
6 WORKDIR /build
7 RUN ["./mvnw", "--batch-mode", "--quiet", "-Dmaven.test.skip", "package"]
8
9
10 FROM openjdk:11-jre-slim as service-twitter
11 LABEL maintainer="Michael Winsauer <e1429715@student.tuwien.ac.at>"
12
13 EXPOSE 8084
14 VOLUME /tmp
15
16 RUN ["useradd", "--no-create-home", "twitter"]
17 USER twitter:twitter
18
19 COPY --from=service-twitter-builder /build/target/service-twitter-0.1.0-SNAPSHOT.jar /app/service-twitter.jar
20
21 WORKDIR /app
22 ENTRYPOINT ["java", "-Djava.security.egd=file:/dev/./urandom", "-jar", "service-twitter.jar"]