ARG ARCH FROM amd64/alpine:3.13.2@sha256:4661fb57f7890b9145907a1fe2555091d333ff3d28db86c3bb906f6a2be93c87 AS base-amd64 FROM arm32v7/alpine:3.13.2@sha256:db5f021b29ec8fcf605f00d2aac06345756b0ffbdea0e7994044fe9172619a0a AS base-arm FROM arm64v8/alpine:3.13.2@sha256:c45a1db6e04b73aad9e06b08f2de11ce8e92d894141b2e801615fa7a8f68314a 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"]