22 lines
701 B
Docker
22 lines
701 B
Docker
ARG ARCH
|
|
FROM amd64/alpine:3.13.3@sha256:4266485e304a825d82c375d3584121b53c802e3540d6b520b212a9f0784d56f5 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
|
|
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-r1" \
|
|
tor="0.4.4.8-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"]
|