-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
61 lines (50 loc) · 1.6 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# About ShadowsocksR of Docker
#
# Version:1.2
FROM debian:jessie
MAINTAINER cms88168 "cms88168@outlook.com"
ENV REFRESHED_AT 2016-1-11
COPY sources.list /etc/apt/sources.list
RUN apt-get -qq update && \
apt-get install -q -y wget build-essential python-m2crypto git openssh-server pwgen && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* && \
mkdir -p /var/run/sshd && \
sed -i "s/UsePrivilegeSeparation.*/UsePrivilegeSeparation no/g" /etc/ssh/sshd_config && \
sed -i "s/PermitRootLogin without-password/PermitRootLogin yes/g" /etc/ssh/sshd_config
#add chacha20
RUN wget https://download.libsodium.org/libsodium/releases/LATEST.tar.gz && \
tar zxf LATEST.tar.gz && \
cd libsodium* && \
./configure && make -j2 && make install && \
ldconfig && \
cd .. && \
rm -rf LATEST.tar.gz && \
rm -rf libsodium*
RUN cd ~ && \
git clone -b manyuser https://github.com/breakwa11/shadowsocks.git
ENV SS_SERVER_PORT 8388
ENV SS_PASSWORD 19941008
ENV SS_METHOD aes-256-cfb
ENV SS_TIMEOUT 300
ENV SS_PROTOCOL verify_deflate
ENV SS_PROTOCOLP \"\"
ENV SS_OBFS http_simple_compatible
ENV SS_OBFSP \"baidu.com\"
ENV SS_REDIRECT \"cmsg.cf/404.html\"
ENV SS_DNSIPV6 false
#add VPN
RUN cd ~ && \
git clone https://github.com/cms88168/SoftEtherVPN.git && \
cd SoftEtherVPN && \
make i_read_and_agree_the_license_agreement
ADD set_root_pw.sh /set_root_pw.sh
RUN chmod +x /*.sh
ADD start.sh /usr/local/bin/start.sh
RUN chmod 755 /usr/local/bin/start.sh
ENV AUTHORIZED_KEYS **None**
EXPOSE 22/tcp
EXPOSE $SS_SERVER_PORT/tcp
EXPOSE 443/tcp
EXPOSE 53/udp
CMD ["sh", "-c", "start.sh"]