File tree Expand file tree Collapse file tree 2 files changed +9
-10
lines changed Expand file tree Collapse file tree 2 files changed +9
-10
lines changed Original file line number Diff line number Diff line change 1818FROM centos:latest
1919MAINTAINER Gang Wang (
[email protected] )
2020
21- # set up your proxy below, refer to readme in the Docker folder
22- ENV proxy_host ""
23- ENV proxy_port ""
24- # ENV http_proxy "http://${proxy_host}:${proxy_port}"
25- # ENV https_proxy ${http_proxy}
26- # ENV HTTP_PROXY ${http_proxy}
27- # ENV HTTPS_PROXY ${http_proxy}
28- # ENV proxy ${http_proxy}
29-
30- RUN echo $proxy
21+ # set up your proxy below, please refer to readme in the Docker folder
22+ ARG proxy_host=""
23+ ARG proxy_port=""
24+ ENV http_proxy ${proxy_host:+"http://${proxy_host}:${proxy_port}" }
25+ ENV https_proxy ${http_proxy}
26+ ENV HTTP_PROXY ${http_proxy}
27+ ENV HTTPS_PROXY ${http_proxy}
28+
29+ RUN echo The proxy set : ${http_proxy}
3130
3231RUN curl -sSL https://s3.amazonaws.com/download.fpcomplete.com/centos/7/fpco.repo | tee /etc/yum.repos.d/fpco.repo
3332
You can’t perform that action at this time.
0 commit comments