mharazin | b8d80b1 | 2020-01-15 15:37:31 +0100 | [diff] [blame] | 1 | FROM docker.io/openjdk:11-jre-slim |
pwielebs | b32fb6d | 2019-07-15 17:25:26 +0200 | [diff] [blame] | 2 | |
| 3 | LABEL 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 | |
mharazin | b8d80b1 | 2020-01-15 15:37:31 +0100 | [diff] [blame] | 8 | RUN useradd --user-group --uid ${docker.user.id} -d ${docker.user.dir} ${docker.user.name}; \ |
| 9 | chmod -R a+w /var/log |
pwielebs | b32fb6d | 2019-07-15 17:25:26 +0200 | [diff] [blame] | 10 | |
| 11 | USER ${docker.user.name} |
| 12 | WORKDIR ${docker.user.dir} |
| 13 | |
| 14 | EXPOSE 8100 8433 |
| 15 | ENTRYPOINT ["java", "-jar", "${project.artifactId}-${project.version}.jar"] |
| 16 | |
| 17 | COPY ${project.build.directory}/${ext.dep.dir.path}/ ${ext.dep.dir.path}/ |
| 18 | COPY ${project.build.directory}/${int.dep.dir.path}/ ${int.dep.dir.path}/ |
| 19 | COPY ${project.build.directory}/${project.artifactId}-${project.version}.jar . |
| 20 | |
| 21 | LABEL 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}" |