dockerfiles/tor/Dockerfile

18 lines
358 B
Docker

FROM alpine:3.16
COPY entrypoint.sh /entrypoint
RUN chmod +x /entrypoint && \
addgroup --gid 10001 tor && \
adduser \
--uid 10000 \
--home /var/lib/tor \
--ingroup tor \
--disabled-password \
--shell /sbin/nologin \
tor && \
apk add --no-cache tor su-exec
ENTRYPOINT ["/entrypoint"]
CMD ["tor"]