Support building behind a proxy

In order to use this functionality, you need to pass `--build-arg`
options for the `http_proxy`, `https_proxy` and `no_proxy` values
that are suitable for *your* build environment.

If not behind a proxy, simply don't pass any `*_proxy` build args.
This commit is contained in:
Olaf Meeuwissen 2018-11-15 21:53:00 +09:00
parent d73dea3d58
commit 31a42da6bb
2 changed files with 2 additions and 2 deletions

View File

@ -4,7 +4,7 @@ COPY pom.xml /app/
COPY src /app/src/
WORKDIR /app
RUN mvn --batch-mode package
RUN mvn --batch-mode --define java.net.useSystemProxies=true package
########################################################################################

View File

@ -4,7 +4,7 @@ COPY pom.xml /app/
COPY src /app/src/
WORKDIR /app
RUN mvn --batch-mode package
RUN mvn --batch-mode --define java.net.useSystemProxies=true package
########################################################################################