Alexander Mazuruk | bc8f2ec | 2021-02-18 17:25:57 +0100 | [diff] [blame] | 1 | FROM nexus3.onap.org:10001/onap/integration-java11:8.0.0 |
pwielebs | b32fb6d | 2019-07-15 17:25:26 +0200 | [diff] [blame] | 2 | |
deen1985 | ee146f3 | 2020-08-05 17:54:22 +0200 | [diff] [blame] | 3 | LABEL copyright="Copyright (C) 2018-2020 NOKIA" \ |
pwielebs | b32fb6d | 2019-07-15 17:25:26 +0200 | [diff] [blame] | 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 | |
Alexander Mazuruk | bc8f2ec | 2021-02-18 17:25:57 +0100 | [diff] [blame] | 8 | USER root |
| 9 | RUN adduser --disabled-password --uid ${docker.user.id} --home ${docker.user.dir} ${docker.user.name} && \ |
| 10 | chmod -R a+w /var/log |
pwielebs | b32fb6d | 2019-07-15 17:25:26 +0200 | [diff] [blame] | 11 | |
| 12 | USER ${docker.user.name} |
| 13 | WORKDIR ${docker.user.dir} |
| 14 | |
| 15 | EXPOSE 8100 8433 |
| 16 | ENTRYPOINT ["java", "-jar", "${project.artifactId}-${project.version}.jar"] |
| 17 | |
| 18 | COPY ${project.build.directory}/${ext.dep.dir.path}/ ${ext.dep.dir.path}/ |
| 19 | COPY ${project.build.directory}/${int.dep.dir.path}/ ${int.dep.dir.path}/ |
| 20 | COPY ${project.build.directory}/${project.artifactId}-${project.version}.jar . |
| 21 | |
| 22 | LABEL git.branch="${git.branch}" \ |
| 23 | git.build.host="${git.build.host}" \ |
| 24 | git.build.time="${git.build.time}" \ |
| 25 | git.build.user.email="${git.build.user.email}" \ |
| 26 | git.build.user.name="${git.build.user.name}" \ |
| 27 | git.build.version="${git.build.version}" \ |
| 28 | git.closest.tag.name="${git.closest.tag.name}" \ |
| 29 | git.commit.id="${git.commit.id}" \ |
| 30 | git.commit.message.short="${git.commit.message.short}" \ |
| 31 | git.commit.time="${git.commit.time}" \ |
| 32 | git.commit.user.email="${git.commit.user.email}" \ |
| 33 | git.commit.user.name="${git.commit.user.name}" |