|
|
@@ -1,12 +1,17 @@
|
|
1
|
1
|
FROM debian:stable-slim
|
|
2
|
2
|
|
|
3
|
|
-RUN apt-get update && \
|
|
4
|
|
- apt-get --yes upgrade && \
|
|
5
|
|
- apt-get --yes install iproute2 ; \
|
|
6
|
|
- echo 'export http_proxy=http://$(ip route list exact 0.0.0.0/0 | head -1 | cut -d" " -f3):3142/' >> /etc/profile ; \
|
|
7
|
|
- . /etc/profile
|
|
|
3
|
+RUN echo 'export http_proxy=http://$(ip route list exact 0.0.0.0/0 | head -1 | cut -d" " -f3):3142/' >> /etc/profile
|
|
8
|
4
|
|
|
9
|
5
|
ARG BUILDDEPS
|
|
10
|
|
-RUN apt-get --yes install build-essential ca-certificates curl git ${BUILDDEPS}
|
|
|
6
|
+RUN \
|
|
|
7
|
+ echo 'export http_proxy=http://$(ip route list exact 0.0.0.0/0 | head -1 | cut -d" " -f3):3142/' >> /etc/profile ; \
|
|
|
8
|
+ apt-get update && apt-get --yes upgrade && \
|
|
|
9
|
+ apt-get --yes install iproute2 ; . /etc/profile ; \
|
|
|
10
|
+ apt-get --yes install \
|
|
|
11
|
+ build-essential \
|
|
|
12
|
+ ca-certificates \
|
|
|
13
|
+ curl \
|
|
|
14
|
+ git \
|
|
|
15
|
+ ${BUILDDEPS}
|
|
11
|
16
|
|
|
12
|
|
-CMD ["bash"]
|
|
|
17
|
+CMD ["bash", "-c", "pwd; echo $PATH"]
|