FROM debian:stable-slim RUN echo 'export http_proxy=http://$(ip route list exact 0.0.0.0/0 | head -1 | cut -d" " -f3):3142/' >> /etc/profile ARG BUILDDEPS RUN \ echo 'export http_proxy=http://$(ip route list exact 0.0.0.0/0 | head -1 | cut -d" " -f3):3142/' >> /etc/profile ; \ apt-get update && apt-get --yes upgrade && \ apt-get --yes install iproute2 ; . /etc/profile ; \ apt-get --yes install \ build-essential \ ca-certificates \ curl \ git \ ${BUILDDEPS} CMD ["bash", "-c", "pwd; echo $PATH"]