add tor env switch

This commit is contained in:
2024-08-08 02:57:33 -07:00
parent b9a432b356
commit 4e948af492
6 changed files with 60 additions and 26 deletions

View File

@ -6,6 +6,7 @@ RUN apt update && apt install -y tor curl
COPY hidden_service /hidden_service
COPY torrc /etc/tor/torrc
COPY entrypoint.sh /
RUN chown -R tor /etc/tor
RUN chown -R tor /hidden_service
@ -14,5 +15,5 @@ RUN chmod -R go-rwx /hidden_service
USER tor
ENTRYPOINT ["tor"]
ENTRYPOINT ["/entrypoint.sh"]