diff --git a/Dockerfile b/Dockerfile index 81c6304..8259264 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,24 +1,18 @@ # Tinyproxy (https://banu.com/tinyproxy/) -FROM ubuntu:precise +FROM ubuntu:trusty MAINTAINER Ryan Seto -RUN echo "deb http://archive.ubuntu.com/ubuntu precise main universe" > /etc/apt/sources.list && \ - apt-get update && \ - apt-get upgrade +RUN apt-get update && \ + apt-get -y upgrade && \ + apt-get -y install tinyproxy && \ + rm -rf /var/lib/apt/lists/* # Ensure UTF-8 RUN locale-gen en_US.UTF-8 ENV LANG en_US.UTF-8 ENV LC_ALL en_US.UTF-8 -# Prevent apt-get from complaining with: Unable to connect to Upstart -RUN dpkg-divert --local --rename --add /sbin/initctl && \ - ln -s /bin/true /sbin/initctl - -# Install Tinyproxy -RUN apt-get -y install tinyproxy - # Configure Tinyproxy # This allows allows all connections. RUN sed -i -e"s/^Allow /#Allow /" /etc/tinyproxy.conf