diff --git a/aas-web-ui/Dockerfile b/aas-web-ui/Dockerfile index 6b86e76..435fdda 100644 --- a/aas-web-ui/Dockerfile +++ b/aas-web-ui/Dockerfile @@ -1,5 +1,9 @@ + + # Build Stage FROM node:lts-slim AS build-stage +ARG HTTP_PROXY +ARG HTTPS_PROXY # Set working directory WORKDIR /app # Copy the package.json and yarn.lock files @@ -13,6 +17,8 @@ RUN yarn build && rm -rf node_modules # Production Stage FROM nginx:mainline-alpine3.20-slim AS production-stage +ARG HTTP_PROXY +ARG HTTPS_PROXY # Set working directory WORKDIR /usr/src/app # Install jq diff --git a/bootstrap.sh b/bootstrap.sh index 82367c9..34fad65 100644 --- a/bootstrap.sh +++ b/bootstrap.sh @@ -2,6 +2,9 @@ PRJ_ROOT="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" FRESH_INSTALL='0' Yellow='\033[1;33m' ColorOff='\033[0m' +# Specify proxy if needed +# export HTTP_PROXY="http://proxyserver:port" +# export HTTPS_PROXY="http://proxyserver:port" echo -e "${Yellow}Do a clean install? (y/n) Default:n ${ColorOff}" read clean_install