Dockerfile 1.1 KB

1234567891011121314151617181920212223242526272829303132
  1. # https://pkgs.alpinelinux.org/packages?name=obfs4proxy&arch=x86_64
  2. FROM docker.io/alpine:3.18.0
  3. ARG TOR_PACKAGE_VERSION=0.4.7.13-r2
  4. # https://git.alpinelinux.org/aports/log/testing/obfs4proxy
  5. ARG OBFS4PROXY_PACKAGE_VERSION=0.0.14-r8
  6. RUN 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 tor
  21. VOLUME /var/lib/tor
  22. CMD ["tor", "-f", "/tmp/torrc"]
  23. # https://github.com/opencontainers/image-spec/blob/v1.0.1/annotations.md
  24. ARG REVISION=
  25. LABEL org.opencontainers.image.title="tor bridge providing obfs4 obfuscation protocol" \
  26. org.opencontainers.image.source="https://github.com/fphammerle/docker-tor-obfs4-bridge" \
  27. org.opencontainers.image.revision="$REVISION"