Unverified Commit 22333e64 authored by Teddysun's avatar Teddysun

Update Dockerfile

Signed-off-by: default avatarTeddysun <i@teddysun.com>
parent d42a77c6
......@@ -6,10 +6,10 @@
FROM debian:stretch
MAINTAINER Teddysun <i@teddysun.com>
RUN set -ex; \
&& printf "deb http://deb.debian.org/debian stretch-backports main" > /etc/apt/sources.list.d/stretch-backports.list; \
&& apt-get update; \
&& apt-get -t stretch-backports install -y --no-install-recommends shadowsocks-libev simple-obfs; \
RUN set -ex \
&& printf "deb http://deb.debian.org/debian stretch-backports main" > /etc/apt/sources.list.d/stretch-backports.list \
&& apt-get update \
&& apt-get -t stretch-backports install -y --no-install-recommends shadowsocks-libev simple-obfs \
&& rm -rf /var/lib/apt/lists/*
COPY ./config_sample.json /etc/shadowsocks-libev/config.json
......
......@@ -6,14 +6,14 @@
FROM debian:stretch
MAINTAINER Teddysun <i@teddysun.com>
RUN set -ex; \
&& apt-get update; \
&& apt-get install -y wget python libsodium-dev openssl; \
&& rm -rf /var/lib/apt/lists/*; \
&& wget -O /tmp/shadowsocksr-3.2.2.tar.gz https://github.com/shadowsocksrr/shadowsocksr/archive/3.2.2.tar.gz; \
&& tar zxf /tmp/shadowsocksr-3.2.2.tar.gz -C /tmp; \
&& mv /tmp/shadowsocksr-3.2.2/shadowsocks /usr/local/; \
&& rm -fr /tmp/shadowsocksr-3.2.2; \
RUN set -ex \
&& apt-get update \
&& apt-get install -y wget python libsodium-dev openssl \
&& rm -rf /var/lib/apt/lists/* \
&& wget -O /tmp/shadowsocksr-3.2.2.tar.gz https://github.com/shadowsocksrr/shadowsocksr/archive/3.2.2.tar.gz \
&& tar zxf /tmp/shadowsocksr-3.2.2.tar.gz -C /tmp \
&& mv /tmp/shadowsocksr-3.2.2/shadowsocks /usr/local/ \
&& rm -fr /tmp/shadowsocksr-3.2.2 \
&& rm -f /tmp/shadowsocksr-3.2.2.tar.gz
COPY ./config_sample.json /etc/shadowsocks-r/config.json
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment