File tree Expand file tree Collapse file tree 3 files changed +60
-0
lines changed Expand file tree Collapse file tree 3 files changed +60
-0
lines changed Original file line number Diff line number Diff line change
1
+ FROM debian:latest
2
+
3
+ MAINTAINER Secbone <
[email protected] >
4
+
5
+ ENV DEPENDENCIES build-essential autoconf libtool libssl-dev git-core
6
+ ENV NORECOMMENDS asciidoc xmlto
7
+ ENV BASEDIR /tmp/shadowsocks-libev
8
+
9
+ EXPOSE 8388
10
+
11
+ # Set up building environment
12
+ RUN apt-get update
13
+ RUN apt-get install -y $DEPENDENCIES
14
+ RUN apt-get install -y $NORECOMMENDS --no-install-recommends
15
+
16
+ # Get the latest code, build and install
17
+ RUN git clone https://github.com/shadowsocks/shadowsocks-libev.git $BASEDIR
18
+ WORKDIR $BASEDIR
19
+ RUN ./configure
20
+ RUN make -j4
21
+ RUN make install
22
+
23
+ WORKDIR /etc/init.d
24
+
25
+ # Tear down building environment and delete git repository
26
+ RUN rm -rf $BASEDIR
27
+ RUN apt-get --purge autoremove -y $DEPENDENCIES $NORECOMMENDS
28
+
29
+ ADD config.json /conf/shadowsocks.json
30
+
31
+ ENTRYPOINT ss-server -u -c /conf/shadowsocks.json -p 8388
Original file line number Diff line number Diff line change
1
+ # Shadowsocks-libev for Docker
2
+
3
+ ## Usage
4
+
5
+ ```
6
+ docker pull secbone/docker-ss-libev
7
+ ```
8
+
9
+ ```
10
+ docker run -d -p 8388:8388 secbone/docker-ss-libev
11
+
12
+ # custom config
13
+ docker run -d -v /path/to/config.json:/conf/shadowsocks.json -p <yourport>:8388 secbone/docker-ss-libev
14
+ ```
15
+
16
+ ## default config
17
+
18
+ - port: ` 8388 `
19
+ - password: ` iachshea `
20
+ - timeout: ` 60 `
21
+ - method: ` aes-256-cfb `
Original file line number Diff line number Diff line change
1
+ {
2
+ "server" :" 0.0.0.0" ,
3
+ "local_address" :" 127.0.0.1" ,
4
+ "local_port" :1080 ,
5
+ "password" :" iachshea" ,
6
+ "timeout" :60 ,
7
+ "method" :" aes-256-cfb"
8
+ }
You can’t perform that action at this time.
0 commit comments