OCI image spec labels for models-simulator
[policy/models.git] / models-sim / packages / models-simulator-docker / src / main / docker / Dockerfile
index a4420b3..50f84d9 100644 (file)
@@ -2,8 +2,9 @@
 # ============LICENSE_START=======================================================
 # ONAP
 # ================================================================================
-# Copyright (C) 2020 AT&T Intellectual Property. All rights reserved.
+# Copyright (C) 2020-2021 AT&T Intellectual Property. All rights reserved.
 # Modifications Copyright (C) 2020 Bell Canada. All rights reserved.
+# Modifications Copyright (C) 2022 Nordix Foundation.
 # ================================================================================
 # Licensed under the Apache License, Version 2.0 (the "License");
 # you may not use this file except in compliance with the License.
 # Docker file to build an image that runs the simulators
 #
 
-FROM onap/policy-jre-alpine:2.1.1
+FROM onap/policy-jre-alpine:2.3.1
 
 LABEL maintainer="Policy Team"
+LABEL org.opencontainers.image.title="Policy Models Simulator"
+LABEL org.opencontainers.image.description="Policy Models Simulator image based on Alpine"
+LABEL org.opencontainers.image.url="https://github.com/onap/policy-models"
+LABEL org.opencontainers.image.vendor="ONAP Policy Team"
+LABEL org.opencontainers.image.licenses="Apache-2.0"
+LABEL org.opencontainers.image.created="${git.build.time}"
+LABEL org.opencontainers.image.version="${git.build.version}"
+LABEL org.opencontainers.image.revision="${git.commit.id.abbrev}"
 
 ARG POLICY_LOGS=/var/log/onap/policy/simulators
 
@@ -57,4 +66,4 @@ RUN find /opt/app -type d -perm 755 \
 USER policy:policy
 
 ENV PATH ${POLICY_HOME}/simulators/bin:$PATH
-ENTRYPOINT [ "bash", "simulators.sh" ]
+ENTRYPOINT [ "simulators.sh" ]