2023-08-24 14:50:53 +00:00
|
|
|
ARG ALPINE_VERSION=3.18.3
|
|
|
|
ARG BASE_IMAGE=gitea.nulo.in/sutty/monit
|
2021-10-03 23:19:00 +00:00
|
|
|
FROM ${BASE_IMAGE}:${ALPINE_VERSION}
|
2024-06-21 15:21:51 +00:00
|
|
|
LABEL org.opencontainers.image.authors="f@sutty.nl"
|
2023-08-24 14:11:41 +00:00
|
|
|
ARG TOR_VERSION=0.4.8.4
|
2023-03-28 18:47:10 +00:00
|
|
|
ARG SUTTY_TOR_HIDDEN_SERVICE_VERSION=0.1.0
|
2020-07-18 23:00:32 +00:00
|
|
|
|
|
|
|
ENV SUTTY="sutty.nl"
|
|
|
|
ENV HTTP_BASIC_USER=""
|
|
|
|
ENV HTTP_BASIC_PASSWORD=""
|
|
|
|
|
2023-08-24 14:11:41 +00:00
|
|
|
RUN apk add --no-cache tor~${TOR_VERSION} sutty_tor_hidden_service~${SUTTY_TOR_HIDDEN_SERVICE_VERSION} daemonize
|
2020-07-18 23:00:32 +00:00
|
|
|
COPY ./monit.conf /etc/monit.d/tor.conf
|
|
|
|
COPY ./torrc /etc/tor/torrc
|
2023-03-28 18:19:25 +00:00
|
|
|
COPY ./hidden_servicesd.sh /usr/local/bin/hidden_servicesd
|
2020-07-18 23:00:32 +00:00
|
|
|
RUN chmod 644 /etc/tor/torrc
|
|
|
|
|
2023-03-30 00:26:27 +00:00
|
|
|
EXPOSE 3000
|
2020-07-18 23:00:32 +00:00
|
|
|
VOLUME /var/lib/tor
|