Dockerfile 696 B

1234567891011121314151617181920212223242526
  1. # https://pkgs.alpinelinux.org/packages?name=obfs4proxy&arch=x86_64
  2. FROM alpine:3.12
  3. ARG TOR_PACKAGE_VERSION=0.4.3.5-r0
  4. ARG OBFS4PROXY_PACKAGE_VERSION=0.0.11-r2
  5. RUN adduser -S onion \
  6. && apk add --no-cache tor=$TOR_PACKAGE_VERSION \
  7. && apk add --no-cache obfs4proxy=$OBFS4PROXY_PACKAGE_VERSION \
  8. --repository http://dl-cdn.alpinelinux.org/alpine/edge/testing
  9. #RUN apk add --no-cache \
  10. # less \
  11. # man-db \
  12. # tor-doc=$TOR_PACKAGE_VERSION
  13. #ENV PAGER=less
  14. ENV OR_PORT=
  15. ENV PT_PORT=
  16. ENV CONTACT_INFO=
  17. COPY torrc.template entrypoint.sh /
  18. RUN chmod -c a+rX /torrc.template /entrypoint.sh
  19. ENTRYPOINT ["/entrypoint.sh"]
  20. USER onion
  21. CMD ["tor", "-f", "/tmp/torrc"]