Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker build with proxy #84

Merged
merged 2 commits into from
Nov 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions aas-web-ui/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# 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 +15,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