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
704 B
Docker
Raw Normal View History

2021-01-27 17:13:48 +00:00
ARG ARCH
2021-01-27 18:45:31 +00:00
FROM amd64/alpine:3.12.3@sha256:074d3636ebda6dd446d0d00304c4454f468237fdacf08fb0eeac90bdbfa1bac7 AS base-amd64
FROM arm32v7/alpine:3.12.3@sha256:299294be8699c1b323c137f972fd0aa5eaa4b95489c213091dcf46ef39b6c810 AS base-arm
FROM arm64v8/alpine:3.12.3@sha256:549694ea68340c26d1d85c00039aa11ad835be279bfd475ff4284b705f92c24e 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:34:12 +00:00
apk update && apk upgrade && apk add \
2021-01-27 18:45:31 +00:00
curl="7.69.1-r3" \
tor="0.4.3.7-r0" && \
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"]