File size: 1,436 Bytes
8ba5955 fb45e8f 8ba5955 ddc715b 8ba5955 ddc715b 8ba5955 ddc715b 8ba5955 ddc715b 8ba5955 efdd24d 8ba5955 ddc715b 8ba5955 efdd24d 5b8501e 745cc5c 5b8501e ddc715b 8ba5955 | 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 31 32 33 34 | FROM nginx:mainline-alpine-slim
MAINTAINER buffge
EXPOSE 7860
USER root
RUN apk update && apk add --no-cache supervisor wget unzip curl
# 定义 UUID 及 伪装路径,请自行修改.(注意:伪装路径以 / 符号开始,为避免不必要的麻烦,请不要使用特殊符号.)
ENV UUID 737f27c8-377d-464a-b03a-aaa8f8d0eade
ENV VMESS_WSPATH /b-vms
ENV VLESS_WSPATH /b-vls
COPY vols/v2-supervisord.conf /etc/supervisor/conf.d/supervisord.conf
COPY vols/nginx.conf /etc/nginx/nginx.conf
RUN mkdir /etc/v2ray /usr/local/v2ray
COPY /vols/v2config.json /etc/v2ray/config.json
COPY entrypoint.sh /usr/local/v2ray/
# 感谢 fscarmen 大佬提供 Dockerfile 层优化方案
RUN wget -q -O /tmp/v2ray-linux-64.zip https://github.com/v2fly/v2ray-core/releases/download/v4.45.0/v2ray-linux-64.zip && \
unzip -d /usr/local/v2ray /tmp/v2ray-linux-64.zip v2ray && \
wget -q -O /usr/local/v2ray/geosite.dat https://github.com/Loyalsoldier/v2ray-rules-dat/releases/latest/download/geosite.dat && \
wget -q -O /usr/local/v2ray/geoip.dat https://github.com/Loyalsoldier/v2ray-rules-dat/releases/latest/download/geoip.dat && \
chmod a+x /usr/local/v2ray/entrypoint.sh && \
apk del wget unzip && \
rm -rf /tmp/v2ray-linux-64.zip && \
rm -rf /var/cache/apk/* && \
rm -rf /tmp/* && \
chmod -R 777 /var/log && \
chmod -R 777 /var/run && \
chmod -R 777 /var/
ENTRYPOINT [ "/usr/local/v2ray/entrypoint.sh" ] |