forked from Snawoot/shadowsocks-heroku
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dockerfile: install v2ray on container build
- Loading branch information
Showing
3 changed files
with
16 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,27 @@ | ||
FROM debian:sid | ||
|
||
ARG V2RAY_VERSION=v1.3.1 | ||
|
||
COPY wwwroot.tar.gz /wwwroot/wwwroot.tar.gz | ||
COPY conf/ /conf | ||
COPY entrypoint.sh /entrypoint.sh | ||
|
||
ARG DEBIAN_FRONTEND=noninteractive | ||
RUN set -ex\ | ||
&& apt update -y \ | ||
&& apt upgrade -y \ | ||
&& apt install -y wget unzip qrencode\ | ||
&& apt install -y shadowsocks-libev\ | ||
&& apt install -y nginx\ | ||
&& apt install -y wget unzip qrencode \ | ||
&& apt install -y shadowsocks-libev \ | ||
&& apt install -y nginx-light \ | ||
&& apt autoremove -y \ | ||
&& apt clean -y \ | ||
&& tar xvf /wwwroot/wwwroot.tar.gz -C /wwwroot \ | ||
&& rm -rf /wwwroot/wwwroot.tar.gz \ | ||
&& chmod +x /entrypoint.sh \ | ||
&& mkdir -p /etc/shadowsocks-libev /v2raybin | ||
&& mkdir -p /etc/shadowsocks-libev /v2raybin \ | ||
&& wget -O- "https://github.com/shadowsocks/v2ray-plugin/releases/download/${V2RAY_VERSION}/v2ray-plugin-linux-amd64-${V2RAY_VERSION}.tar.gz" | \ | ||
tar zx -C /v2raybin \ | ||
&& install /v2raybin/v2ray-plugin_linux_amd64 /usr/bin/v2ray-plugin \ | ||
&& rm -rf /v2raybin | ||
|
||
CMD /entrypoint.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters