Fix /etc/tor/torrc config file owner to tor user

This commit is contained in:
Peter Dave Hello 2021-01-24 23:13:32 +08:00
parent c593940b1f
commit a63920f51b

View file

@ -10,7 +10,7 @@ RUN echo '@edge http://dl-cdn.alpinelinux.org/alpine/edge/community' >> /etc/apk
chmod 700 /var/lib/tor && \
rm -rf /var/cache/apk/* && \
tor --version
COPY torrc /etc/tor/
COPY --chown=tor:root torrc /etc/tor/
HEALTHCHECK --timeout=10s --start-period=60s \
CMD curl --fail --socks5-hostname localhost:9150 -I -L 'https://www.facebookcorewwwi.onion/' || exit 1