blob: a64ec39f8a8e0ee4254c96361550a36f4766008b [file] [log] [blame]
arun chapagain258be882020-08-06 15:44:12 +05301FROM docker.io/openjdk:11-jre-slim
Mnushkin, Dmitry6514e3b2019-10-21 09:25:56 -04002
3#Create User so
4RUN addgroup -g 1000 so && adduser -S -u 1000 -G so so
5
6ARG project_version=1.1.0-SNAPSHOT
7ARG artifact_id
8ARG docker_repository
9ENV docker_repository $docker_repository
10ENV project_version $project_version
11ENV artifact_id $artifact_id
12
13ENV no_proxy localhost
14
15VOLUME /tmp
16WORKDIR /app
17
18ADD /maven/${artifact_id}-${project_version}.jar /app/app.jar
19RUN chown -R so:so /app
20
21USER so
22
23
arun chapagain258be882020-08-06 15:44:12 +053024ENTRYPOINT ["java","-Djava.security.egd=file:/dev/./urandom","-jar","/app/app.jar"]