Skip to content

Commit b1a0518

Browse files
committed
add missing dependency: mbedtls
1 parent c696934 commit b1a0518

File tree

4 files changed

+26
-8
lines changed

4 files changed

+26
-8
lines changed

Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ RUN set -ex \
1313
&& apk add --no-cache libcrypto1.0 \
1414
libev \
1515
libsodium \
16+
mbedtls \
1617
pcre \
1718
udns \
1819
&& apk add --no-cache \
@@ -25,6 +26,7 @@ RUN set -ex \
2526
libsodium-dev \
2627
libtool \
2728
linux-headers \
29+
mbedtls-dev \
2830
openssl-dev \
2931
pcre-dev \
3032
tar \

Dockerfile.arm

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ RUN set -ex \
1313
&& apk add --no-cache libcrypto1.0 \
1414
libev \
1515
libsodium \
16+
mbedtls \
1617
pcre \
1718
udns \
1819
&& apk add --no-cache \
@@ -25,6 +26,7 @@ RUN set -ex \
2526
libsodium-dev \
2627
libtool \
2728
linux-headers \
29+
mbedtls-dev \
2830
openssl-dev \
2931
pcre-dev \
3032
tar \

Dockerfile.debian

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# Dockerfile for shadowsocks-libev
2+
# Dockerfile for shadowsocks-libev:debian
33
#
44

55
FROM debian:jessie
@@ -26,8 +26,6 @@ RUN set -xe \
2626
libev-dev \
2727
libpcre3 \
2828
libpcre3-dev \
29-
libsodium13 \
30-
libsodium-dev \
3129
libssl1.0.0 \
3230
libssl-dev \
3331
libtool \
@@ -39,6 +37,16 @@ RUN set -xe \
3937
zlib1g-dev \
4038
&& curl -sSL ${SS_URL} | tar xz \
4139
&& 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 .. \
4250
&& curl -sSL https://github.com/shadowsocks/ipset/archive/shadowsocks.tar.gz | tar xz --strip 1 -C libipset \
4351
&& curl -sSL https://github.com/shadowsocks/libcork/archive/shadowsocks.tar.gz | tar xz --strip 1 -C libcork \
4452
&& ./autogen.sh \
@@ -56,7 +64,6 @@ RUN set -xe \
5664
init-system-helpers \
5765
libev-dev \
5866
libpcre3-dev \
59-
libsodium-dev \
6067
libssl-dev \
6168
libtool \
6269
libudns-dev \

Dockerfile.debian.arm

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# Dockerfile for shadowsocks-libev-arm
2+
# Dockerfile for shadowsocks-libev-arm:debian
33
#
44

55
FROM resin/rpi-raspbian
@@ -26,8 +26,6 @@ RUN set -xe \
2626
libev-dev \
2727
libpcre3 \
2828
libpcre3-dev \
29-
libsodium13 \
30-
libsodium-dev \
3129
libssl1.0.0 \
3230
libssl-dev \
3331
libtool \
@@ -39,6 +37,16 @@ RUN set -xe \
3937
zlib1g-dev \
4038
&& curl -sSL ${SS_URL} | tar xz \
4139
&& 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 .. \
4250
&& curl -sSL https://github.com/shadowsocks/ipset/archive/shadowsocks.tar.gz | tar xz --strip 1 -C libipset \
4351
&& curl -sSL https://github.com/shadowsocks/libcork/archive/shadowsocks.tar.gz | tar xz --strip 1 -C libcork \
4452
&& ./autogen.sh \
@@ -56,7 +64,6 @@ RUN set -xe \
5664
init-system-helpers \
5765
libev-dev \
5866
libpcre3-dev \
59-
libsodium-dev \
6067
libssl-dev \
6168
libtool \
6269
libudns-dev \

0 commit comments

Comments
 (0)