dockerfiles/tor/Dockerfile

18 lines
358 B
Docker
Raw Normal View History

2022-07-13 09:29:27 +02:00
FROM alpine:3.16
2020-04-08 13:05:07 +02:00
2021-02-18 10:21:14 +01:00
COPY entrypoint.sh /entrypoint
2021-02-18 10:23:44 +01:00
RUN chmod +x /entrypoint && \
2021-02-18 10:21:14 +01:00
addgroup --gid 10001 tor && \
2021-02-18 10:07:59 +01:00
adduser \
--uid 10000 \
--home /var/lib/tor \
--ingroup tor \
--disabled-password \
--shell /sbin/nologin \
tor && \
2021-02-18 10:21:14 +01:00
apk add --no-cache tor su-exec
2021-02-18 10:07:59 +01:00
2021-02-18 10:21:14 +01:00
ENTRYPOINT ["/entrypoint"]
CMD ["tor"]