Skip to content

Commit

Permalink
Support building behind a proxy
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
paddy-hack committed Nov 15, 2018
1 parent d73dea3 commit 31a42da
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Dockerfile.jetty
Original file line number Diff line number Diff line change
Expand Up @@ -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

########################################################################################

Expand Down
2 changes: 1 addition & 1 deletion Dockerfile.tomcat
Original file line number Diff line number Diff line change
Expand Up @@ -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

########################################################################################

Expand Down

0 comments on commit 31a42da

Please sign in to comment.