forked from doudoubinga/openshift
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
26 lines (20 loc) · 842 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
FROM alpine:latest
ENV CONFIG_JSON=none CERT_PEM=none KEY_PEM=none VER=3.36
RUN apk add --no-cache --virtual .build-deps ca-certificates curl \
&& mkdir -m 777 /v2raybin \
&& cd /v2raybin \
&& curl -L -H "Cache-Control: no-cache" -o v2ray.zip https://github.com/v2ray/v2ray-core/releases/download/v$VER/v2ray-linux-64.zip \
&& unzip v2ray.zip \
&& mv /v2raybin/v2ray-v$VER-linux-64/v2ray /v2raybin/ \
&& mv /v2raybin/v2ray-v$VER-linux-64/v2ctl /v2raybin/ \
&& mv /v2raybin/v2ray-v$VER-linux-64/geoip.dat /v2raybin/ \
&& mv /v2raybin/v2ray-v$VER-linux-64/geosite.dat /v2raybin/ \
&& chmod +x /v2raybin/v2ray \
&& rm -rf v2ray.zip \
&& rm -rf v2ray-v$VER-linux-64 \
&& chgrp -R 0 /v2raybin \
&& chmod -R g+rwX /v2raybin
ADD entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
ENTRYPOINT /entrypoint.sh
EXPOSE 8080