Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 5 additions & 11 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,24 +1,18 @@
# Tinyproxy (https://banu.com/tinyproxy/)

FROM ubuntu:precise
FROM ubuntu:trusty
MAINTAINER Ryan Seto <ryanseto@yak.net>

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
Expand Down