ARG ALPINE_VERSION=3.13.6 ARG BASE_IMAGE=sutty/monit FROM ${BASE_IMAGE}:${ALPINE_VERSION} MAINTAINER "f " ARG SUTTY_TOR_HIDDEN_SERVICE_VERSION=0.1.0 ENV SUTTY="sutty.nl" ENV HTTP_BASIC_USER="" ENV HTTP_BASIC_PASSWORD="" RUN apk add --no-cache tor sutty_tor_hidden_service~${SUTTY_TOR_HIDDEN_SERVICE_VERSION} daemonize COPY ./monit.conf /etc/monit.d/tor.conf COPY ./torrc /etc/tor/torrc COPY ./hidden_servicesd.sh /usr/local/bin/hidden_servicesd RUN chmod 644 /etc/tor/torrc VOLUME /var/lib/tor