Dockerfile 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. # https://pkgs.alpinelinux.org/packages?name=lyrebird&arch=x86_64
  2. FROM docker.io/alpine:3.18.5
  3. # https://gitweb.torproject.org/tor.git/plain/ChangeLog
  4. # https://gitlab.torproject.org/tpo/core/tor/-/raw/release-0.4.8/ReleaseNotes
  5. # https://git.alpinelinux.org/aports/log/community/tor?h=3.18-stable
  6. ARG TOR_PACKAGE_VERSION=0.4.8.10-r0
  7. # https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/lyrebird/-/blob/main/ChangeLog
  8. # https://git.alpinelinux.org/aports/log/testing/lyrebird
  9. # https://gitlab.com/yawning/obfs4/-/blob/master/ChangeLog
  10. # https://git.alpinelinux.org/aports/log/testing/obfs4proxy
  11. # https://git.alpinelinux.org/aports/commit/?id=08aa4bff0894ead479db96642aac67a4a0d1835
  12. ARG LYREBIRD_PACKAGE_VERSION=0.1.0-r2
  13. RUN apk add --no-cache tor=$TOR_PACKAGE_VERSION \
  14. && apk add --no-cache lyrebird=$LYREBIRD_PACKAGE_VERSION \
  15. --repository http://dl-cdn.alpinelinux.org/alpine/edge/testing
  16. #RUN apk add --no-cache \
  17. # less \
  18. # man-db \
  19. # tor-doc=$TOR_PACKAGE_VERSION
  20. #ENV PAGER=less
  21. ENV OR_PORT=
  22. ENV PT_PORT=
  23. ENV CONTACT_INFO=
  24. COPY torrc.template entrypoint.sh /
  25. RUN chmod -c a+rX /torrc.template /entrypoint.sh
  26. ENTRYPOINT ["/entrypoint.sh"]
  27. USER tor
  28. VOLUME /var/lib/tor
  29. CMD ["tor", "-f", "/tmp/torrc"]
  30. # https://github.com/opencontainers/image-spec/blob/v1.0.1/annotations.md
  31. ARG REVISION=
  32. LABEL org.opencontainers.image.title="tor bridge providing obfs4 obfuscation protocol via lyrebird" \
  33. org.opencontainers.image.source="https://github.com/fphammerle/docker-tor-obfs4-bridge" \
  34. org.opencontainers.image.revision="$REVISION"