FROM debian:stable-slim ENV PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin ENV HOME / 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"]