blob: 8fa8dc75e9dc8b7385c16278545ea2722a6db15a [file] [log] [blame]
Mnushkin, Dmitry6514e3b2019-10-21 09:25:56 -04001FROM docker.io/openjdk:8-jdk-alpine
2
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
24ENTRYPOINT ["java","-Djava.security.egd=file:/dev/./urandom","-jar","/app/app.jar"]