FROM paramah/base:alpine as base-config FROM alpine MAINTAINER Aleksander Cynarski 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"]