Dockerfile 1022 B

12345678910111213141516171819202122232425262728293031
  1. # https://pkgs.alpinelinux.org/packages?name=obfs4proxy&arch=x86_64
  2. FROM docker.io/alpine:3.17.1
  3. ARG TOR_PACKAGE_VERSION=0.4.7.13-r0
  4. ARG OBFS4PROXY_PACKAGE_VERSION=0.0.14-r3
  5. RUN apk add --no-cache tor=$TOR_PACKAGE_VERSION \
  6. && apk add --no-cache obfs4proxy=$OBFS4PROXY_PACKAGE_VERSION \
  7. --repository http://dl-cdn.alpinelinux.org/alpine/edge/testing
  8. #RUN apk add --no-cache \
  9. # less \
  10. # man-db \
  11. # tor-doc=$TOR_PACKAGE_VERSION
  12. #ENV PAGER=less
  13. ENV OR_PORT=
  14. ENV PT_PORT=
  15. ENV CONTACT_INFO=
  16. COPY torrc.template entrypoint.sh /
  17. RUN chmod -c a+rX /torrc.template /entrypoint.sh
  18. ENTRYPOINT ["/entrypoint.sh"]
  19. USER tor
  20. VOLUME /var/lib/tor
  21. CMD ["tor", "-f", "/tmp/torrc"]
  22. # https://github.com/opencontainers/image-spec/blob/v1.0.1/annotations.md
  23. ARG REVISION=
  24. LABEL org.opencontainers.image.title="tor bridge providing obfs4 obfuscation protocol" \
  25. org.opencontainers.image.source="https://github.com/fphammerle/docker-tor-obfs4-bridge" \
  26. org.opencontainers.image.revision="$REVISION"