File tree 4 files changed +26
-8
lines changed
4 files changed +26
-8
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ RUN set -ex \
13
13
&& apk add --no-cache libcrypto1.0 \
14
14
libev \
15
15
libsodium \
16
+ mbedtls \
16
17
pcre \
17
18
udns \
18
19
&& apk add --no-cache \
@@ -25,6 +26,7 @@ RUN set -ex \
25
26
libsodium-dev \
26
27
libtool \
27
28
linux-headers \
29
+ mbedtls-dev \
28
30
openssl-dev \
29
31
pcre-dev \
30
32
tar \
Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ RUN set -ex \
13
13
&& apk add --no-cache libcrypto1.0 \
14
14
libev \
15
15
libsodium \
16
+ mbedtls \
16
17
pcre \
17
18
udns \
18
19
&& apk add --no-cache \
@@ -25,6 +26,7 @@ RUN set -ex \
25
26
libsodium-dev \
26
27
libtool \
27
28
linux-headers \
29
+ mbedtls-dev \
28
30
openssl-dev \
29
31
pcre-dev \
30
32
tar \
Original file line number Diff line number Diff line change 1
1
#
2
- # Dockerfile for shadowsocks-libev
2
+ # Dockerfile for shadowsocks-libev:debian
3
3
#
4
4
5
5
FROM debian:jessie
@@ -26,8 +26,6 @@ RUN set -xe \
26
26
libev-dev \
27
27
libpcre3 \
28
28
libpcre3-dev \
29
- libsodium13 \
30
- libsodium-dev \
31
29
libssl1.0.0 \
32
30
libssl-dev \
33
31
libtool \
@@ -39,6 +37,16 @@ RUN set -xe \
39
37
zlib1g-dev \
40
38
&& curl -sSL ${SS_URL} | tar xz \
41
39
&& cd ${SS_DIR} \
40
+ && curl -sSL https://download.libsodium.org/libsodium/releases/libsodium-1.0.11.tar.gz | tar xz \
41
+ && cd libsodium-1.0.11 \
42
+ && ./configure --prefix=/usr \
43
+ && make install \
44
+ && cd .. \
45
+ && curl -sSL https://tls.mbed.org/download/mbedtls-2.4.0-gpl.tgz | tar xz \
46
+ && cd mbedtls-2.4.0 \
47
+ && make SHARED=1 CFLAGS=-fPIC \
48
+ && make install \
49
+ && cd .. \
42
50
&& curl -sSL https://github.com/shadowsocks/ipset/archive/shadowsocks.tar.gz | tar xz --strip 1 -C libipset \
43
51
&& curl -sSL https://github.com/shadowsocks/libcork/archive/shadowsocks.tar.gz | tar xz --strip 1 -C libcork \
44
52
&& ./autogen.sh \
@@ -56,7 +64,6 @@ RUN set -xe \
56
64
init-system-helpers \
57
65
libev-dev \
58
66
libpcre3-dev \
59
- libsodium-dev \
60
67
libssl-dev \
61
68
libtool \
62
69
libudns-dev \
Original file line number Diff line number Diff line change 1
1
#
2
- # Dockerfile for shadowsocks-libev-arm
2
+ # Dockerfile for shadowsocks-libev-arm:debian
3
3
#
4
4
5
5
FROM resin/rpi-raspbian
@@ -26,8 +26,6 @@ RUN set -xe \
26
26
libev-dev \
27
27
libpcre3 \
28
28
libpcre3-dev \
29
- libsodium13 \
30
- libsodium-dev \
31
29
libssl1.0.0 \
32
30
libssl-dev \
33
31
libtool \
@@ -39,6 +37,16 @@ RUN set -xe \
39
37
zlib1g-dev \
40
38
&& curl -sSL ${SS_URL} | tar xz \
41
39
&& cd ${SS_DIR} \
40
+ && curl -sSL https://download.libsodium.org/libsodium/releases/libsodium-1.0.11.tar.gz | tar xz \
41
+ && cd libsodium-1.0.11 \
42
+ && ./configure --prefix=/usr \
43
+ && make install \
44
+ && cd .. \
45
+ && curl -sSL https://tls.mbed.org/download/mbedtls-2.4.0-gpl.tgz | tar xz \
46
+ && cd mbedtls-2.4.0 \
47
+ && make SHARED=1 CFLAGS=-fPIC \
48
+ && make install \
49
+ && cd .. \
42
50
&& curl -sSL https://github.com/shadowsocks/ipset/archive/shadowsocks.tar.gz | tar xz --strip 1 -C libipset \
43
51
&& curl -sSL https://github.com/shadowsocks/libcork/archive/shadowsocks.tar.gz | tar xz --strip 1 -C libcork \
44
52
&& ./autogen.sh \
@@ -56,7 +64,6 @@ RUN set -xe \
56
64
init-system-helpers \
57
65
libev-dev \
58
66
libpcre3-dev \
59
- libsodium-dev \
60
67
libssl-dev \
61
68
libtool \
62
69
libudns-dev \
You can’t perform that action at this time.
0 commit comments