22 lines
696 B
Docker
22 lines
696 B
Docker
ARG ARCH
|
|
FROM alpine:3.14.2@sha256:e1c082e3d3c45cccac829840a25941e679c25d438cc8412c2fa221cf1a824e6a AS base-amd64
|
|
FROM arm32v7/alpine:3.14.2@sha256:e12ff876f0075740ed3d7bdf788107ae84c1b3dd6dc98b3baea41088aba5236f AS base-arm
|
|
FROM arm64v8/alpine:3.14.2@sha256:b06a5cf61b2956088722c4f1b9a6f71dfe95f0b1fe285d44195452b8a1627de7 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.79.1-r0" \
|
|
tor="0.4.5.10-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"]
|