statta | a3a04c5 | 2019-08-23 16:49:45 -0400 | [diff] [blame] | 1 | ARG FE_BASE_IMAGE=httpd:2.4.34-alpine |
| 2 | FROM ${FE_BASE_IMAGE} |
| 3 | |
| 4 | ARG FE_DIR=build/public |
| 5 | ARG HTTP_PROXY |
| 6 | ARG HTTPS_PROXY |
| 7 | # ARG PORTAL_CERT=truststoreONAPall.jks |
| 8 | |
| 9 | ARG FECONTEXT=ONAPPORTAL |
| 10 | |
| 11 | ENV http_proxy $HTTP_PROXY |
| 12 | ENV https_proxy $HTTPS_PROXY |
| 13 | RUN if [ -d /etc/apt ] && [ ! -z ${HTTP_PROXY} ]; then echo "Acquire::http::proxy \"${HTTP_PROXY}\";" >> /etc/apt/apt.conf; fi && \ |
| 14 | if [ -d /etc/apt ] && [ ! -z ${HTTPS_PROXY} ]; then echo "Acquire::https::proxy \"${HTTPS_PROXY}\";" >> /etc/apt/apt.conf; fi |
| 15 | |
| 16 | RUN addgroup -g 1000 -S portal && adduser -u 1000 -S portal -G portal && chown -R portal:portal . && rm /usr/local/apache2/htdocs/index.html |
| 17 | |
| 18 | USER portal:portal |
| 19 | |
| 20 | COPY ${FE_DIR} /usr/local/apache2/htdocs/${FECONTEXT} |