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.74.0-r0" \ tor="0.4.4.7-r1" && \ 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"]