forked from fphammerle/docker-tor-obfs4-bridge
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
47 lines (42 loc) · 1.7 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# https://pkgs.alpinelinux.org/packages?name=lyrebird&arch=x86_64
FROM docker.io/alpine:3.18.4
# https://gitweb.torproject.org/tor.git/plain/ChangeLog
# https://gitlab.torproject.org/tpo/core/tor/-/raw/release-0.4.8/ReleaseNotes
# https://git.alpinelinux.org/aports/log/community/tor?h=3.18-stable
ARG TOR_PACKAGE_VERSION=0.4.8.7-r0
# https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/lyrebird/-/blob/main/ChangeLog
# https://git.alpinelinux.org/aports/log/testing/lyrebird
# https://gitlab.com/yawning/obfs4/-/blob/master/ChangeLog
# https://git.alpinelinux.org/aports/log/testing/obfs4proxy
# https://git.alpinelinux.org/aports/commit/?id=08aa4bff0894ead479db96642aac67a4a0d1835
ARG LYREBIRD_PACKAGE_VERSION=0.1.0-r2
RUN apk add --no-cache tor=$TOR_PACKAGE_VERSION \
&& apk add --no-cache lyrebird=$LYREBIRD_PACKAGE_VERSION \
--repository https://dl-cdn.alpinelinux.org/alpine/edge/testing/
#RUN apk add --no-cache \
# less \
# man-db \
# tor-doc=$TOR_PACKAGE_VERSION
#ENV PAGER=less
ENV OR_PORT=
ENV PT_PORT=
ENV CONTACT_INFO=
ENV NICKNAME=
ENV DISABLE_IPV6=
ENV ACCOUNTINGMAX=
ENV ACCOUNTINGSTART=
ENV BANDWIDTHRATE=
ENV BANDWIDTHBURST=
ENV EXITRELAY=
ENV DISABLE_IPV6=
COPY torrc.template entrypoint.sh /
RUN chmod -c a+rX /torrc.template /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]
USER tor
VOLUME /var/lib/tor
CMD ["tor", "-f", "/tmp/torrc"]
# https://github.com/opencontainers/image-spec/blob/v1.0.1/annotations.md
ARG REVISION=
LABEL org.opencontainers.image.title="tor bridge providing obfs4 obfuscation protocol via lyrebird" \
org.opencontainers.image.source="https://github.com/fphammerle/docker-tor-obfs4-bridge" \
org.opencontainers.image.revision="$REVISION"