summaryrefslogtreecommitdiffstats
path: root/installation/admportal
diff options
context:
space:
mode:
authorPetr Ospalý <p.ospaly@partner.samsung.com>2019-06-07 18:30:36 +0200
committerPetr Ospalý <p.ospaly@partner.samsung.com>2019-06-12 17:27:34 +0200
commit92bc2f4964e1930c00bcb0ff2e23013b06de9327 (patch)
tree907ad5b7e9e91919a2fd77d573917bae409d6ca0 /installation/admportal
parent2821c8403b77c58f220ba5a35f54d31bbba46bed (diff)
Fix admportal image
Docker container should be stateless and be self-contained. When image is run as container it should behave exactly the same with each run. This commit moves npm install stuff into docker build stage where it belongs. Please, read: https://docs.docker.com/get-started/part2/ Issue-ID: SDNC-685 Signed-off-by: Petr Ospalý <p.ospaly@partner.samsung.com> Change-Id: I4ff18b313a9af400bbfc2cbf6f4a1b1334593d9a Former-commit-id: 8436b953a938452f2d7c865e3bc2449ecfcabdea
Diffstat (limited to 'installation/admportal')
-rw-r--r--installation/admportal/src/main/docker/Dockerfile2
1 files changed, 2 insertions, 0 deletions
diff --git a/installation/admportal/src/main/docker/Dockerfile b/installation/admportal/src/main/docker/Dockerfile
index 21cd7a30..f5b51d1f 100644
--- a/installation/admportal/src/main/docker/Dockerfile
+++ b/installation/admportal/src/main/docker/Dockerfile
@@ -8,5 +8,7 @@ MAINTAINER SDN-C Team (sdnc@lists.openecomp.org)
# copy openecomp
COPY opt /opt
+RUN cd /opt/onap/sdnc/admportal && npm install
+
#ENTRYPOINT exec /opt/openecomp/sdnc/admportal/shell/startssl.sh
EXPOSE 8843 8443