tinyproxy/Dockerfile

42 lines
1.2 KiB
Docker
Raw Normal View History

2021-03-27 11:29:48 +00:00
FROM travix/base-alpine:3.5 as builder
2021-03-27 10:57:35 +00:00
2021-03-27 11:29:48 +00:00
ENV TINYPROXY_VERSION=1.11.0-rc1
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
FROM alpine:3.5
2021-03-27 10:57:35 +00:00
MAINTAINER Aleksander Cynarski <aleksander@cynarski.pl>
RUN set -xe \
2021-03-27 11:29:48 +00:00
&& apk add --no-cache wget curl bash openssh
COPY --from=builder /bin/tinyproxy /usr/bin/tinyproxy
2021-03-27 10:57:35 +00:00
ENV DOCKERIZE_VERSION v0.6.1
# Install dockerize
RUN wget https://github.com/jwilder/dockerize/releases/download/$DOCKERIZE_VERSION/dockerize-alpine-linux-amd64-$DOCKERIZE_VERSION.tar.gz \
&& tar -C /usr/local/bin -xzvf dockerize-alpine-linux-amd64-$DOCKERIZE_VERSION.tar.gz \
&& rm dockerize-alpine-linux-amd64-$DOCKERIZE_VERSION.tar.gz
COPY docker/etc /etc
2021-03-27 11:29:48 +00:00
COPY docker/*-entrypoint.sh /usr/sbin/
2021-03-27 10:57:35 +00:00
EXPOSE 8888
2021-03-27 11:29:48 +00:00
ENTRYPOINT ["docker-entrypoint.sh"]
CMD ["/usr/bin/tinyproxy", "-d"]