summaryrefslogtreecommitdiffstats
path: root/deliveries/Dockerfile.fe
diff options
context:
space:
mode:
authorstatta <statta@research.att.com>2019-08-23 16:49:45 -0400
committerstatta <statta@research.att.com>2019-08-23 16:51:05 -0400
commita3a04c5887779e9ca8024a3e87ece109b8d9b0c1 (patch)
treed4c36f55aaba1f5a76bdf95308a0dc5ff21b425a /deliveries/Dockerfile.fe
parent7ce177cd99096772ff42ef89d8820070c687fd9b (diff)
Onboarding Page Account Admin Change
Issue-ID: PORTAL-644 Change-Id: I95e43b1a2d12dcb5a4bc56d374cc6d30d8aae3f3 Signed-off-by: statta <statta@research.att.com>
Diffstat (limited to 'deliveries/Dockerfile.fe')
-rw-r--r--deliveries/Dockerfile.fe20
1 files changed, 20 insertions, 0 deletions
diff --git a/deliveries/Dockerfile.fe b/deliveries/Dockerfile.fe
new file mode 100644
index 00000000..9af10cc3
--- /dev/null
+++ b/deliveries/Dockerfile.fe
@@ -0,0 +1,20 @@
+ARG FE_BASE_IMAGE=httpd:2.4.34-alpine
+FROM ${FE_BASE_IMAGE}
+
+ARG FE_DIR=build/public
+ARG HTTP_PROXY
+ARG HTTPS_PROXY
+# ARG PORTAL_CERT=truststoreONAPall.jks
+
+ARG FECONTEXT=ONAPPORTAL
+
+ENV http_proxy $HTTP_PROXY
+ENV https_proxy $HTTPS_PROXY
+RUN if [ -d /etc/apt ] && [ ! -z ${HTTP_PROXY} ]; then echo "Acquire::http::proxy \"${HTTP_PROXY}\";" >> /etc/apt/apt.conf; fi && \
+ if [ -d /etc/apt ] && [ ! -z ${HTTPS_PROXY} ]; then echo "Acquire::https::proxy \"${HTTPS_PROXY}\";" >> /etc/apt/apt.conf; fi
+
+RUN addgroup -g 1000 -S portal && adduser -u 1000 -S portal -G portal && chown -R portal:portal . && rm /usr/local/apache2/htdocs/index.html
+
+USER portal:portal
+
+COPY ${FE_DIR} /usr/local/apache2/htdocs/${FECONTEXT}