You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
64 lines
2.1 KiB
Docker
64 lines
2.1 KiB
Docker
FROM alpine:3.9
|
|
MAINTAINER 456<freereaper.svip@gmail.com>
|
|
|
|
ENV NODE_ID=0 \
|
|
DNS_1=1.0.0.1 \
|
|
DNS_2=8.8.8.8 \
|
|
SPEEDTEST=0 \
|
|
CLOUDSAFE=0 \
|
|
AUTOEXEC=0 \
|
|
ANTISSATTACK=0 \
|
|
MU_SUFFIX=download.windowsupate.com \
|
|
MU_REGEX=%5m%id.%suffix \
|
|
NODE_CUSTOM_OBFS=1 \
|
|
USE_NETFLIX_DNS=0 \
|
|
NETFLIX_DNS= \
|
|
API_INTERFACE=glzjinmod \
|
|
WEBAPI_URL=https://zhaoj.in \
|
|
WEBAPI_TOKEN=glzjin \
|
|
MYSQL_HOST=127.0.0.1 \
|
|
MYSQL_PORT=3306 \
|
|
MYSQL_USER=ss \
|
|
MYSQL_PASS=ss \
|
|
MYSQL_DB=shadowsocks \
|
|
REDIRECT=github.com \
|
|
FAST_OPEN=false
|
|
|
|
COPY . /root/shadowsocks
|
|
WORKDIR /root/shadowsocks
|
|
|
|
RUN apk --no-cache add \
|
|
curl \
|
|
libintl \
|
|
python3-dev \
|
|
libsodium-dev \
|
|
openssl-dev \
|
|
udns-dev \
|
|
mbedtls-dev \
|
|
pcre-dev \
|
|
libev-dev \
|
|
libtool \
|
|
libffi-dev && \
|
|
apk --no-cache add --virtual .build-deps \
|
|
git \
|
|
tar \
|
|
make \
|
|
gettext \
|
|
py3-pip \
|
|
autoconf \
|
|
automake \
|
|
build-base \
|
|
linux-headers && \
|
|
ln -s /usr/bin/python3 /usr/bin/python && \
|
|
ln -s /usr/bin/pip3 /usr/bin/pip && \
|
|
cp /usr/bin/envsubst /usr/local/bin/ && \
|
|
pip install --upgrade pip && \
|
|
pip install -r requirements.txt && \
|
|
rm -rf ~/.cache && touch /etc/hosts.deny && \
|
|
apk del --purge .build-deps
|
|
|
|
CMD envsubst < apiconfig.py > userapiconfig.py && \
|
|
envsubst < config.json > user-config.json && \
|
|
echo -e "${DNS_1}\n${DNS_2}\n" > dns.conf && \
|
|
python server.py
|