squid-deb-proxy/Dockerfile

30 lines
839 B
Docker
Raw Normal View History

2014-08-18 16:22:46 +00:00
FROM ubuntu:trusty
MAINTAINER Panagiotis Moustafellos <pmoust@gmail.com>
# update and install squid-deb-proxy
ENV DEBIAN_FRONTEND noninteractive
2014-08-18 16:22:46 +00:00
RUN apt-get update && \
apt-get install -y --no-install-recommends \
squid-deb-proxy squid-deb-proxy-client avahi-daemon avahi-utils
2014-08-18 16:22:46 +00:00
# Extra locations to cache from
ADD extra-sources.acl /etc/squid-deb-proxy/mirror-dstdomain.acl.d/20-extra-sources.acl
2014-08-18 16:22:46 +00:00
# Point cache directory to /cachedir
RUN ln -sf /cachedir /var/cache/squid-deb-proxy
2014-08-18 16:22:46 +00:00
# Redirect logs to stdout for the container
RUN ln -sf /dev/stdout /var/log/squid-deb-proxy/access.log
RUN ln -sf /dev/stdout /var/log/squid-deb-proxy/store.log
RUN ln -sf /dev/stdout /var/log/squid-deb-proxy/cache.log
2014-08-18 16:22:46 +00:00
ADD start.sh /start.sh
RUN chmod +x /start.sh
VOLUME ["/cachedir"]
EXPOSE 8000
EXPOSE 5353/udp
2014-08-18 16:22:46 +00:00
ENTRYPOINT ["/start.sh"]