Last active
December 27, 2015 10:09
-
-
Save fairchild/7309068 to your computer and use it in GitHub Desktop.
dockerfile defining a basic apt-cacher-ng service
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Apt-Proxy hosting image | |
# | |
# VERSION 0.1.0 | |
# Use a modified version of the Ubuntu base image provided by dotCloud | |
FROM fairchild/ubuntu | |
MAINTAINER Michael Fairchild [email protected] | |
ENV APT_PROXY apt.dockerdev.att.io | |
RUN apt-get update && apt-get install -y apt-cacher-ng | |
RUN echo "Acquire::http { Proxy \"http://127.0.0.1:3142\"; };"| tee -a /etc/apt/apt.conf.d/01proxy | |
ENTRYPOINT ["/usr/sbin/apt-cacher-ng", "ForeGround=1"] | |
EXPOSE 3142 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
updated, and it now works
The -v is just so that the cache can be reused across different containers and container restarts