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:
@@ -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
|
||||
|
||||
########################################################################################
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
########################################################################################
|
||||
|
||||
|
||||
Reference in New Issue
Block a user