blob: c09ce4a7bee8efdcd2ae891b49fde6973fa345c4 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
# Bare image for testing config packages.
#
# This image is configured to use apt-cacher-ng running on the host
# machine, and hence is designed to not require an internet connection
# to build and run (assuming the base image is cached).
#
# To enable access from a running container to the host's
# apt-cacher-ng, the following firewall rule is required:
#
# iptables -A INPUT -i docker0 -p tcp --dport 3142 -j ACCEPT
FROM crashbox-config-base:latest
RUN echo 'Acquire::http::Proxy "http://172.17.0.1:3142";' \
> /etc/apt/apt.conf.d/00aptproxy
COPY target/archive/ /usr/local/share/archive/
RUN echo "deb [trusted=yes] file:/usr/local/share/archive ./" \
> /etc/apt/sources.list.d/local-archive.list
RUN apt-get update \
-o Dir::Etc::sourcelist="sources.list.d/local-archive.list" \
-o Dir::Etc::sourceparts="-" \
-o APT::Get::List-Cleanup="0"
CMD ["bash"]
|