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

22 lines
701 B
Docker

ARG ARCH
FROM amd64/alpine:3.13.1@sha256:3747d4eb5e7f0825d54c8e80452f1e245e24bd715972c919d189a62da97af2ae AS base-amd64
FROM arm32v7/alpine:3.13.1@sha256:817f5bc4194eccd71ad9afe9c2eb7e73a5841180a88a385229bd38ab6daf005b AS base-arm
FROM arm64v8/alpine:3.13.1@sha256:019c59128325536e838a5f36028db214335129f9aa83214cc2c60c10dc1797ac AS base-arm64
FROM base-${ARCH}
RUN adduser -D -h /usr/local/tor -s /bin/false tor tor && \
apk upgrade --no-cache && apk add \
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
COPY entrypoint.sh /
VOLUME /web
USER tor
ENTRYPOINT ["sh", "/entrypoint.sh"]