-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathDockerfile
More file actions
28 lines (21 loc) · 754 Bytes
/
Dockerfile
File metadata and controls
28 lines (21 loc) · 754 Bytes
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
26
27
28
# Tinyproxy (https://banu.com/tinyproxy/)
FROM ubuntu:precise
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
# 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
USER nobody
EXPOSE 8888
ENTRYPOINT ["/usr/sbin/tinyproxy", "-d"]