site/tor/Dockerfile

21 lines
374 B
Docker
Raw Normal View History

2024-08-08 11:42:12 +00:00
FROM alpine
2024-08-08 09:17:49 +00:00
RUN adduser --disabled-password --gecos "" tor
2024-08-08 11:42:12 +00:00
RUN apk update && apk add tor
2024-08-08 09:17:49 +00:00
COPY hidden_service /hidden_service
COPY torrc /etc/tor/torrc
2024-08-08 09:57:33 +00:00
COPY entrypoint.sh /
2024-08-08 09:17:49 +00:00
RUN chown -R tor /etc/tor
RUN chown -R tor /hidden_service
2024-08-08 11:42:12 +00:00
RUN chown -R tor /entrypoint.sh
2024-08-08 09:17:49 +00:00
RUN chmod -R go-rwx /etc/tor
RUN chmod -R go-rwx /hidden_service
USER tor
2024-08-08 09:57:33 +00:00
ENTRYPOINT ["/entrypoint.sh"]
2024-08-08 09:17:49 +00:00