mirror of
https://git.netzspielplatz.de/docker-multiarch/apt-cacher-ng.git
synced 2025-11-08 17:09:37 +00:00
Initial commit
This commit is contained in:
commit
16693ed694
2 changed files with 61 additions and 0 deletions
16
Dockerfile
Normal file
16
Dockerfile
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
#
|
||||
# Build: docker build -t apt-cacher .
|
||||
# Run: docker run -d -p 3142:3142 --name apt-cacher-run apt-cacher
|
||||
#
|
||||
# and then you can run containers with:
|
||||
# docker run -t -i --rm -e http_proxy http://dockerhost:3142/ debian bash
|
||||
#
|
||||
# Here, `dockerhost` is the IP address or FQDN of a host running the Docker daemon
|
||||
# which acts as an APT proxy server.
|
||||
FROM debian:stable-slim
|
||||
|
||||
VOLUME ["/var/cache/apt-cacher-ng"]
|
||||
RUN apt-get update && apt dist-upgrade -y && apt-get install -y apt-cacher-ng && rm -rf /var/lib/apt/lists/*
|
||||
RUN echo "PassThroughPattern: .*" >> /etc/apt-cacher-ng/zz_debconf.conf
|
||||
EXPOSE 3142
|
||||
CMD chmod 777 /var/cache/apt-cacher-ng && /etc/init.d/apt-cacher-ng start && tail -f /var/log/apt-cacher-ng/*
|
||||
Loading…
Add table
Add a link
Reference in a new issue