From 31a42da6bb277db89db7888d939c697ad8e9a6fc Mon Sep 17 00:00:00 2001 From: Olaf Meeuwissen Date: Thu, 15 Nov 2018 21:53:00 +0900 Subject: [PATCH] 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. --- Dockerfile.jetty | 2 +- Dockerfile.tomcat | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile.jetty b/Dockerfile.jetty index 128eb543..0e683533 100644 --- a/Dockerfile.jetty +++ b/Dockerfile.jetty @@ -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 ######################################################################################## diff --git a/Dockerfile.tomcat b/Dockerfile.tomcat index 630ea342..52746685 100644 --- a/Dockerfile.tomcat +++ b/Dockerfile.tomcat @@ -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 ########################################################################################