summaryrefslogtreecommitdiffstats
path: root/so-simulator/src/main/docker/Dockerfile
blob: a64ec39f8a8e0ee4254c96361550a36f4766008b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
FROM docker.io/openjdk:11-jre-slim

#Create User so
RUN addgroup -g 1000 so && adduser -S -u 1000 -G so so

ARG project_version=1.1.0-SNAPSHOT
ARG artifact_id
ARG docker_repository
ENV docker_repository $docker_repository
ENV project_version $project_version
ENV artifact_id $artifact_id

ENV no_proxy localhost

VOLUME /tmp 
WORKDIR /app

ADD /maven/${artifact_id}-${project_version}.jar /app/app.jar 
RUN chown -R so:so /app

USER so 


ENTRYPOINT ["java","-Djava.security.egd=file:/dev/./urandom","-jar","/app/app.jar"]