github.com/tompao/docker@v1.9.1/docs/examples/apt-cacher-ng.Dockerfile (about) 1 # 2 # Build: docker build -t apt-cacher . 3 # Run: docker run -d -p 3142:3142 --name apt-cacher-run apt-cacher 4 # 5 # and then you can run containers with: 6 # docker run -t -i --rm -e http_proxy http://dockerhost:3142/ debian bash 7 # 8 FROM ubuntu 9 MAINTAINER SvenDowideit@docker.com 10 11 VOLUME ["/var/cache/apt-cacher-ng"] 12 RUN apt-get update && apt-get install -y apt-cacher-ng 13 14 EXPOSE 3142 15 CMD chmod 777 /var/cache/apt-cacher-ng && /etc/init.d/apt-cacher-ng start && tail -f /var/log/apt-cacher-ng/*