Dockerfile 475 B

123456789101112131415161718192021
  1. # https://pkgs.alpinelinux.org/packages?name=obfs4proxy&arch=x86_64
  2. FROM alpine:3.10
  3. RUN adduser -S onion \
  4. && apk add --no-cache tor \
  5. && apk add --no-cache obfs4proxy \
  6. --repository http://dl-cdn.alpinelinux.org/alpine/edge/testing
  7. ENV OR_PORT=
  8. ENV PT_PORT=
  9. ENV CONTACT_INFO=
  10. COPY torrc.template /
  11. RUN chmod a+r /torrc.template
  12. COPY entrypoint.sh /
  13. RUN chmod a+rx /entrypoint.sh
  14. ENTRYPOINT ["/entrypoint.sh"]
  15. USER onion
  16. CMD ["tor", "-f", "/tmp/torrc"]