File tree Expand file tree Collapse file tree 3 files changed +20
-0
lines changed Expand file tree Collapse file tree 3 files changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,10 @@ ARG VERSION
7
7
8
8
RUN apt-get update && \
9
9
apt-get install -y curl tor tor-geoipdb obfs4proxy && \
10
+ # cleanup
11
+ apt-get clean && \
12
+ rm -rf /var/lib/apt/lists/* && \
13
+ # check versions
10
14
tor_version=$(apt-cache madison tor | awk '{print $3; exit}' ) && \
11
15
obfs4proxy_version=$(apt-cache madison obfs4proxy | awk '{print $3; exit}' ) && \
12
16
ubuntu_version=$(cat /etc/os-release | grep VERSION_ID | awk -F '"' '{print $2}' ) && \
Original file line number Diff line number Diff line change @@ -54,9 +54,14 @@ RUN apt-get update && \
54
54
cp obfs4proxy /usr/bin/obfs4proxy && \
55
55
chmod +x /usr/bin/obfs4proxy && \
56
56
# cleanup
57
+ go clean -modcache -cache -testcache -fuzzcache && \
58
+ rm -rf ~/go && \
59
+ rm -rf ~/.cache && \
57
60
apt-get remove -y golang git build-essential automake libevent-dev libssl-dev zlib1g-dev && \
58
61
apt-get autoremove -y && \
59
62
apt-get install -y libc6 libcap2 libevent-dev liblzma5 libseccomp2 libssl3 libsystemd0 libzstd1 zlib1g adduser lsb-base && \
63
+ apt-get clean && \
64
+ rm -rf /var/lib/apt/lists/* && \
60
65
rm -rf ~/git && \
61
66
# check versions
62
67
ubuntu_version=$(cat /etc/os-release | grep VERSION_ID | awk -F '"' '{print $2}' ) && \
Original file line number Diff line number Diff line change @@ -5,24 +5,35 @@ FROM ubuntu:rolling
5
5
RUN apt-get update && \
6
6
apt-get install -y git && \
7
7
mkdir -p ~/git && \
8
+ # get tor
8
9
cd ~/git && \
9
10
git clone https://gitlab.torproject.org/tpo/core/tor.git && \
10
11
cd ~/git/tor && \
11
12
git fetch --tags && \
12
13
torLatestTag=$(git describe --tags "$(git rev-list --tags --max-count=1)" ) && \
14
+ # get webtunnel
13
15
cd ~/git && \
14
16
git clone https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/webtunnel.git && \
15
17
cd ~/git/webtunnel/main/client && \
16
18
webtunnelCommitHash=$(git rev-parse --short HEAD) && \
19
+ # get snowflake
17
20
cd ~/git && \
18
21
git clone https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake.git && \
19
22
cd ~/git/snowflake/ && \
20
23
snowflakeCommitHash=$(git rev-parse --short HEAD) && \
24
+ # get obfs4proxy
21
25
cd ~/git && \
22
26
git clone https://gitlab.com/yawning/obfs4.git && \
23
27
cd ~/git/obfs4 && \
24
28
git fetch --tags && \
25
29
obfs4LatestTag=$(git describe --tags "$(git rev-list --tags --max-count=1)" ) && \
30
+ # cleanup
31
+ apt-get remove -y git && \
32
+ apt-get autoremove -y && \
33
+ apt-get clean && \
34
+ rm -rf /var/lib/apt/lists/* && \
35
+ rm -rf ~/git && \
36
+ # write version info
26
37
ubuntu_version=$(cat /etc/os-release | grep VERSION_ID | awk -F '"' '{print $2}' ) && \
27
38
torLatestTag=$(echo $torLatestTag | sed 's/.*-//' ) && \
28
39
obfs4LatestTag=$(echo $obfs4LatestTag | sed 's/.*-//' ) && \
You can’t perform that action at this time.
0 commit comments