2014-02-14 01:56:21 -05:00
|
|
|
#
|
2014-03-12 08:02:24 -04:00
|
|
|
# Build: docker build -t apt-cacher .
|
2014-03-13 13:46:02 -04:00
|
|
|
# Run: docker run -d -p 3142:3142 --name apt-cacher-run apt-cacher
|
2014-02-14 01:56:21 -05:00
|
|
|
#
|
|
|
|
# and then you can run containers with:
|
2014-03-13 13:46:02 -04:00
|
|
|
# docker run -t -i --rm -e http_proxy http://dockerhost:3142/ debian bash
|
2014-02-14 01:56:21 -05:00
|
|
|
#
|
|
|
|
FROM ubuntu
|
|
|
|
MAINTAINER SvenDowideit@docker.com
|
|
|
|
|
|
|
|
VOLUME ["/var/cache/apt-cacher-ng"]
|
2014-07-07 14:06:34 -04:00
|
|
|
RUN apt-get update && apt-get install -y apt-cacher-ng
|
2014-02-14 01:56:21 -05:00
|
|
|
|
2014-03-12 08:02:24 -04:00
|
|
|
EXPOSE 3142
|
2014-07-07 14:06:34 -04:00
|
|
|
CMD chmod 777 /var/cache/apt-cacher-ng && /etc/init.d/apt-cacher-ng start && tail -f /var/log/apt-cacher-ng/*
|