aboutsummaryrefslogtreecommitdiffstats
path: root/so-simulator/src/main/docker/Dockerfile
diff options
context:
space:
mode:
authorMnushkin, Dmitry <dmitry.mnushkin@att.com>2019-10-21 09:25:56 -0400
committerBenjamin, Max (mb388a) <mb388a@att.com>2019-12-11 12:09:08 -0500
commit6514e3bded45ec57f5157afc6d2833fb4e40f271 (patch)
tree90564370be261656a4116ab2dc814102f5513109 /so-simulator/src/main/docker/Dockerfile
parent1d6c9fde4bb1abead317f217c636ab6a61dbd7df (diff)
Add so-simulator project
contribute simulator to onap project Issue-ID: SO-2463 Signed-off-by: Benjamin, Max (mb388a) <mb388a@att.com> Change-Id: I0a3a71fdeb47cbbd686830045a8bc40769102a29
Diffstat (limited to 'so-simulator/src/main/docker/Dockerfile')
-rw-r--r--so-simulator/src/main/docker/Dockerfile24
1 files changed, 24 insertions, 0 deletions
diff --git a/so-simulator/src/main/docker/Dockerfile b/so-simulator/src/main/docker/Dockerfile
new file mode 100644
index 0000000000..8fa8dc75e9
--- /dev/null
+++ b/so-simulator/src/main/docker/Dockerfile
@@ -0,0 +1,24 @@
+FROM docker.io/openjdk:8-jdk-alpine
+
+#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"] \ No newline at end of file