docker – Blame information for rev 65

Subversion Repositories:
Rev:
Rev Author Line No. Line
65 office 1 FROM debian:stable-slim
2 MAINTAINER Wizardry and Steamworks <wizardry.steamworks@outlook.com>
3  
4 # update package manager
5 RUN apt-get update -y && \
6 apt-get upgrade -y && \
7 apt-get dist-upgrade -y && \
8 apt-get -y autoremove && \
9 apt-get clean
10  
11 # install required packages
12 RUN apt-get install -y \
13 expect \
14 telnet \
15 coreutils \
16 bash \
17 curl \
18 git \
19 build-essential \
20 autoconf \
21 automake \
22 libtool \
23 pkgconf \
24 libevent-dev \
25 libssl-dev \
26 libzstd-dev \
27 liblzma-dev \
28 zlib1g \
29 zlib1g-dev \
30 supervisor \
31 libssl1.1 \
32 libicu67 \
33 unzip
34  
35 RUN mkdir -p /tmp/kitchen
36 WORKDIR /tmp/kitchen
37  
38 # install the latest golang
39 RUN curl -fsSL "https://go.dev/dl/$(curl -s 'https://go.dev/VERSION?m=text' | head -1).linux-amd64.tar.gz" -o go.tar.gz && \
40 tar -xzf go.tar.gz && \
41 rm go.tar.gz && \
42 git clone https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake.git && \
43 cd /tmp/kitchen/snowflake/client && \
44 /tmp/kitchen/go/bin/go build && \
45 mkdir -p /usr/local/bin && \
46 cp client /usr/local/bin/snowflake-client
47  
48 # compile the latest tor
49 WORKDIR /tmp/kitchen
50 RUN git clone https://gitlab.torproject.org/tpo/core/tor.git && \
51 cd /tmp/kitchen/tor && \
52 ./autogen.sh && \
53 ./configure \
54 --enable-lzma \
55 --enable-zstd \
56 --disable-gcc-hardening \
57 --disable-linker-hardening \
58 --disable-manpage \
59 --disable-html-manual \
60 --disable-asciidoc \
61 --disable-unittests && \
62 make -j4 && \
63 mkdir -p /usr/local/bin && \
64 cp /tmp/kitchen/tor/src/app/tor /usr/local/bin/
65  
66 # install checkcircuit
67 WORKDIR /tmp/kitchen
68 RUN curl -fsSL https://checkcircuit.grimore.org/download/linux-x64/CheckCircuit-1.0.7.1-linux-x64.zip -o checkcircuit.zip && \
69 unzip checkcircuit.zip && \
70 mv CheckCircuit /usr/local/bin/
71  
72 # pivot out and remove the kitchen
73 WORKDIR /
74 RUN rm -rf /tmp/kitchen
75  
76 # include root filesystem
77 ADD rootfs /
78  
79 # remove packages that will not be used
80 RUN apt-get purge -y \
81 curl \
82 git \
83 build-essential \
84 autoconf \
85 automake \
86 libtool \
87 pkgconf && \
88 apt-get autoremove -y
89  
90 # tor required port
91 EXPOSE 9050 7050 9053
92  
93 # specify the entry point
94 RUN chmod +x /usr/local/bin/run
95 ENTRYPOINT [ "/usr/local/bin/run" ]