containers-tor/Dockerfile
f a63ff5834a
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
Merge branch 'antifascista' of ssh://gitea.nulo.in:420/Sutty/containers-skel into antifascista
2023-10-02 15:04:14 -03:00

20 lines
574 B
Docker

ARG ALPINE_VERSION=3.18.3
ARG BASE_IMAGE=gitea.nulo.in/sutty/monit
FROM ${BASE_IMAGE}:${ALPINE_VERSION}
MAINTAINER "f <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