This repository has been archived on 2021-09-23. You can view files and clone it, but cannot push or open issues or pull requests.
hidden-service/Dockerfile
samuel-p 6408742619
All checks were successful
continuous-integration/drone/push Build is passing
updated Dockerfile
2021-01-27 23:34:12 +01:00

22 lines
704 B
Docker

ARG ARCH
FROM amd64/alpine:3.12.3@sha256:074d3636ebda6dd446d0d00304c4454f468237fdacf08fb0eeac90bdbfa1bac7 AS base-amd64
FROM arm32v7/alpine:3.12.3@sha256:299294be8699c1b323c137f972fd0aa5eaa4b95489c213091dcf46ef39b6c810 AS base-arm
FROM arm64v8/alpine:3.12.3@sha256:549694ea68340c26d1d85c00039aa11ad835be279bfd475ff4284b705f92c24e AS base-arm64
FROM base-${ARCH}
RUN adduser -D -h /usr/local/tor -s /bin/false tor tor && \
apk update && apk upgrade && apk add \
curl="7.69.1-r3" \
tor="0.4.3.7-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"]