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