-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
30 lines (24 loc) · 820 Bytes
/
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
# About shadowsocks of Docker for multi-user
#
# Version:1.0.0
FROM ubuntu:14.04
MAINTAINER wangyongdong <[email protected]>
RUN apt-get -qq update && \
apt-get install -q -y wget build-essential python-pip python-m2crypto && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
RUN pip install shadowsocks
#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
#配置时区
ENV TZ=Asia/Shanghai
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone && \
dpkg-reconfigure -f noninteractive tzdata
ADD shadowsocks.json /etc/
ADD start.sh /usr/local/bin/start.sh
RUN chmod 755 /usr/local/bin/start.sh
CMD ["sh", "-c", "start.sh"]