Code Review
/
aaf
/
authz.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Medium Vulnerabilities CodeFix: 1. URL Redirection 2. AAF-1111
[aaf/authz.git]
/
auth
/
docker
/
Dockerfile.core
diff --git
a/auth/docker/Dockerfile.core
b/auth/docker/Dockerfile.core
index
3431ee2
..
206d1c4
100644
(file)
--- a/
auth/docker/Dockerfile.core
+++ b/
auth/docker/Dockerfile.core
@@
-17,7
+17,9
@@
# limitations under the License.
# ============LICENSE_END====================================================
#
# limitations under the License.
# ============LICENSE_END====================================================
#
-FROM nexus3.onap.org:10001/onap/aaf/aaf-base-xenial:latest
+FROM ${DOCKER_REPOSITORY}/onap/aaf/aaf_base:${AAF_VERSION}
+#FROM nexus3.onap.org:10001/onap/aaf/aaf_base:${AAF_VERSION}
+#FROM nexus3.onap.org:10001/onap/aaf/aaf-base-xenial:latest
MAINTAINER AAF Team, AT&T 2018
ENV VERSION=${AAF_VERSION}
MAINTAINER AAF Team, AT&T 2018
ENV VERSION=${AAF_VERSION}
@@
-26,6
+28,13
@@
LABEL version=${AAF_VERSION}
COPY lib /opt/app/aaf/lib
COPY bin /opt/app/aaf/bin
COPY lib /opt/app/aaf/lib
COPY bin /opt/app/aaf/bin
-COPY theme
/opt/app/aaf/theme
+COPY theme
/ /opt/app/aaf/theme/
+RUN mkdir -p /opt/app/aaf && \
+ if [ -n "${DUSER}" ]; then \
+ addgroup ${DUSER} && adduser ${DUSER} -G ${DUSER} -D -s /bin/bash ;\
+ chown -R ${DUSER}:${DUSER} /opt/app/aaf ;\
+ chmod 774 /opt/app/aaf/bin/* ;\
+ fi
+# Note: User added if in d.props