Skip to content

Commit

Permalink
Docker build with proxy
Browse files Browse the repository at this point in the history
  • Loading branch information
seicke committed Nov 5, 2024
1 parent e1b677f commit 3f0314d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
6 changes: 6 additions & 0 deletions aas-web-ui/Dockerfile
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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
Expand Down
3 changes: 3 additions & 0 deletions bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3f0314d

Please sign in to comment.