tinyproxy 1.11.0-rc1
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2021-03-27 12:29:48 +01:00
parent 82009192e3
commit b5011fb187
7 changed files with 59 additions and 17 deletions

View File

@ -1,15 +1,30 @@
FROM paramah/base:alpine as base-config
FROM travix/base-alpine:3.5 as builder
FROM alpine
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
MAINTAINER Aleksander Cynarski <aleksander@cynarski.pl>
COPY --from=base-config /etc/supervisor /etc/supervisor
RUN set -xe \
&& apk add --no-cache wget curl bash openssh supervisor tinyproxy \
&& sed -i -e '/^Allow /s/^/#/' \
-e '/^ConnectPort /s/^/#/' \
-e '/^#DisableViaHeader /s/^#//' \
/etc/tinyproxy/tinyproxy.conf
&& apk add --no-cache wget curl bash openssh
COPY --from=builder /bin/tinyproxy /usr/bin/tinyproxy
ENV DOCKERIZE_VERSION v0.6.1
# Install dockerize
@ -18,7 +33,9 @@ RUN wget https://github.com/jwilder/dockerize/releases/download/$DOCKERIZE_VERSI
&& rm dockerize-alpine-linux-amd64-$DOCKERIZE_VERSION.tar.gz
COPY docker/etc /etc
COPY docker/*-entrypoint.sh /usr/sbin/
EXPOSE 8888
CMD ["/usr/bin/supervisord", "-c", "/etc/supervisor/supervisord.conf"]
ENTRYPOINT ["docker-entrypoint.sh"]
CMD ["/usr/bin/tinyproxy", "-d"]