This repository has been archived on 2021-09-23. You can view files and clone it, but cannot push or open issues or pull requests.
hidden-service/Dockerfile

23 lines
696 B
Docker
Raw Normal View History

2021-01-27 17:13:48 +00:00
ARG ARCH
FROM alpine:3.14.1@sha256:eb3e4e175ba6d212ba1d6e04fc0782916c08e1c9d7b45892e9796141b1d379ae AS base-amd64
FROM arm32v7/alpine:3.14.1@sha256:fb9ac82b4cc94c5a6c416a1c656b3ee84df9290ab4106c260eb959997e759e5e AS base-arm
FROM arm64v8/alpine:3.14.1@sha256:bd9137c3bb45dbc40cde0f0e19a8b9064c2bc485466221f5e95eb72b0d0cf82e AS base-arm64
2021-01-27 17:13:48 +00:00
FROM base-${ARCH}
2021-01-27 18:45:31 +00:00
RUN adduser -D -h /usr/local/tor -s /bin/false tor tor && \
2021-01-27 22:41:37 +00:00
apk upgrade --no-cache && apk add \
2021-08-08 19:00:55 +00:00
curl="7.78.0-r0" \
2021-08-20 07:00:51 +00:00
tor="0.4.5.10-r0" && \
2021-01-27 18:45:31 +00:00
rm -f /var/cache/apk/* && \
mkdir /web && \
chown -R tor /web /etc/tor && \
chmod 700 /web
2021-01-27 17:13:48 +00:00
COPY entrypoint.sh /
VOLUME /web
USER tor
2021-01-27 18:45:31 +00:00
ENTRYPOINT ["sh", "/entrypoint.sh"]