-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathDockerfile
More file actions
37 lines (29 loc) · 901 Bytes
/
Dockerfile
File metadata and controls
37 lines (29 loc) · 901 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
29
30
31
32
33
34
35
36
37
FROM travix/base-alpine:3.5
MAINTAINER Travix
ENV TINYPROXY_VERSION=1.8
RUN adduser -D -u 2000 -h /var/run/tinyproxy -s /sbin/nologin tinyproxy tinyproxy \
&& apk --update add -t build-dependencies \
make \
automake \
autoconf \
g++ \
asciidoc \
git \
&& rm -rf /var/cache/apk/* \
&& git clone -b ${TINYPROXY_VERSION} --depth=1 https://github.com/tinyproxy/tinyproxy.git /tmp/tinyproxy \
&& cd /tmp/tinyproxy \
&& ./autogen.sh \
&& ./configure --enable-transparent --prefix="" \
&& make \
&& make install \
&& mkdir -p /var/log/tinyproxy \
&& chown tinyproxy:tinyproxy /var/log/tinyproxy \
&& cd / \
&& rm -rf /tmp/tinyproxy \
&& apk del build-dependencies
COPY tinyproxy.conf /etc/tinyproxy/tinyproxy.conf
COPY docker-entrypoint.sh /docker-entrypoint.sh
USER tinyproxy
EXPOSE 8888
ENTRYPOINT ["/docker-entrypoint.sh"]
CMD ["tinyproxy", "-d"]