Dockerfile 1.5 KB

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