22 lines
695 B
Docker
22 lines
695 B
Docker
ARG ARCH
|
|
FROM alpine:3.14.1@sha256:be9bdc0ef8e96dbc428dc189b31e2e3b05523d96d12ed627c37aa2936653258c AS base-amd64
|
|
FROM arm32v7/alpine:3.14.1@sha256:fb9ac82b4cc94c5a6c416a1c656b3ee84df9290ab4106c260eb959997e759e5e AS base-arm
|
|
FROM arm64v8/alpine:3.14.1@sha256:bd9137c3bb45dbc40cde0f0e19a8b9064c2bc485466221f5e95eb72b0d0cf82e 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-r1" \
|
|
tor="0.4.5.9-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"]
|