tinyproxy/Dockerfile
Aleksander Cynarski 82009192e3
All checks were successful
continuous-integration/drone/push Build is passing
initial commit
2021-03-27 11:57:35 +01:00

25 lines
886 B
Docker

FROM paramah/base:alpine as base-config
FROM alpine
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
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
EXPOSE 8888
CMD ["/usr/bin/supervisord", "-c", "/etc/supervisor/supervisord.conf"]