# ===========================================================================
# Copyright © 2017 AT&T Intellectual Property. All rights reserved.
# Modifications Copyright (C) 2018 Nokia. 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.
mv misc/aaf-ca.crt /usr/local/share/ca-certificates/aaf-ca.crt
RUN update-ca-certificates
-# Install curl
-RUN apk add --no-cache curl
+# Install curl & openssl
+RUN apk add --no-cache curl openssl gettext jq
-RUN apk add --no-cache curl
-
-RUN chmod +x /opt/app/dbc-client/bin/* && \
+RUN mkdir -p /opt/app/osaaf/local && \
+ chmod +x /opt/app/dbc-client/bin/* && \
mkdir /opt/app/dbc-client/logs
-VOLUME /opt/app/dbc-client/log
+RUN addgroup -S -g 1001 onap \
+ && adduser -S -u 1000 onap -G onap \
+ && chown -R onap:onap /opt/
+
+USER onap
-ENTRYPOINT ["sh", "./bin/dbc-client", "deploy"]
+ENTRYPOINT ["sh", "./bin/dbc-client" ]