blob: 22a9b46884b68e4d6287b266343cd913a1dea20c [file] [log] [blame]
mharazinb8d80b12020-01-15 15:37:31 +01001FROM docker.io/openjdk:11-jre-slim
pwielebsb32fb6d2019-07-15 17:25:26 +02002
3LABEL copyright="Copyright (C) 2018-2019 NOKIA" \
4 license.name="The Apache Software License, Version 2.0" \
5 license.url="http://www.apache.org/licenses/LICENSE-2.0" \
6 maintainer="Nokia Wroclaw ONAP Team"
7
mharazinb8d80b12020-01-15 15:37:31 +01008RUN useradd --user-group --uid ${docker.user.id} -d ${docker.user.dir} ${docker.user.name}; \
9chmod -R a+w /var/log
pwielebsb32fb6d2019-07-15 17:25:26 +020010
11USER ${docker.user.name}
12WORKDIR ${docker.user.dir}
13
14EXPOSE 8100 8433
15ENTRYPOINT ["java", "-jar", "${project.artifactId}-${project.version}.jar"]
16
17COPY ${project.build.directory}/${ext.dep.dir.path}/ ${ext.dep.dir.path}/
18COPY ${project.build.directory}/${int.dep.dir.path}/ ${int.dep.dir.path}/
19COPY ${project.build.directory}/${project.artifactId}-${project.version}.jar .
20
21LABEL git.branch="${git.branch}" \
22 git.build.host="${git.build.host}" \
23 git.build.time="${git.build.time}" \
24 git.build.user.email="${git.build.user.email}" \
25 git.build.user.name="${git.build.user.name}" \
26 git.build.version="${git.build.version}" \
27 git.closest.tag.name="${git.closest.tag.name}" \
28 git.commit.id="${git.commit.id}" \
29 git.commit.message.short="${git.commit.message.short}" \
30 git.commit.time="${git.commit.time}" \
31 git.commit.user.email="${git.commit.user.email}" \
32 git.commit.user.name="${git.commit.user.name}"