22 lines
701 B
Docker
22 lines
701 B
Docker
ARG ARCH
|
|
FROM amd64/alpine:3.13.5@sha256:def822f9851ca422481ec6fee59a9966f12b351c62ccb9aca841526ffaa9f748 AS base-amd64
|
|
FROM arm32v7/alpine:3.13.5@sha256:9663906b1c3bf891618ebcac857961531357525b25493ef717bca0f86f581ad6 AS base-arm
|
|
FROM arm64v8/alpine:3.13.5@sha256:8f18fae117ec6e5777cc62ba78cbb3be10a8a38639ccfb949521abd95c8301a4 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.77.0-r0" \
|
|
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"]
|