19 lines
598 B
Docker
19 lines
598 B
Docker
ARG ALPINE_VERSION=3.18.3
|
|
ARG BASE_IMAGE=gitea.nulo.in/sutty/monit
|
|
FROM ${BASE_IMAGE}:${ALPINE_VERSION}
|
|
LABEL org.opencontainers.image.authors="f@sutty.nl"
|
|
ARG TOR_VERSION=0.4.8.4
|
|
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~${TOR_VERSION} 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
|
|
|
|
EXPOSE 3000
|
|
VOLUME /var/lib/tor
|