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
701 B
Text
Raw Normal View History

2021-01-27 17:13:48 +00:00
ARG ARCH
FROM amd64/alpine:3.13.4@sha256:e103c1b4bf019dc290bcc7aca538dc2bf7a9d0fc836e186f5fa34945c5168310 AS base-amd64
FROM arm32v7/alpine:3.13.4@sha256:59b46c319f3b66dfda96faafd0c6959e9b2f409792d0236204f270dfd0235960 AS base-arm
FROM arm64v8/alpine:3.13.4@sha256:071fa5de01a240dbef5be09d69f8fef2f89d68445d9175393773ee389b6f5935 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-03-01 05:01:00 +00:00
curl="7.74.0-r1" \
2021-03-17 05:01:14 +00:00
tor="0.4.4.8-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"]