Sign inSign up

altshift/v2ray

By altshift

•Updated almost 5 years ago

v2ray v4.42.2

Image
0

422

altshift/v2ray repository overview

⁠dockerfile

FROM centos:latest as builder

RUN ls -l /sbin/init
RUN yum makecache
RUN yum -y install curl
RUN yum -y install unzip
RUN curl -L -o /tmp/install-release.sh https://raw.githubusercontent.com/v2fly/fhs-install-v2ray/master/install-release.sh
RUN curl -L -o /tmp/install-dat-release.sh https://raw.githubusercontent.com/v2fly/fhs-install-v2ray/master/install-dat-release.sh
RUN chmod +x /tmp/install-release.sh
RUN chmod +x /tmp/install-dat-release.sh
RUN /tmp/install-release.sh
RUN /tmp/install-dat-release.sh
RUN ls

FROM alpine:latest

COPY --from=builder /usr/local/bin/v2ray /usr/local/bin/
COPY --from=builder /usr/local/bin/v2ctl /usr/local/bin/
COPY --from=builder /usr/local/share/v2ray/geoip.dat /usr/local/bin/
COPY --from=builder /usr/local/share/v2ray/geosite.dat /usr/local/bin/

RUN set -ex && \
    apk --no-cache add ca-certificates && \
    mkdir /var/log/v2ray/ &&\
    chmod +x /usr/local/bin/v2ctl && \
    chmod +x /usr/local/bin/v2ray

ENV PATH /usr/local/bin:$PATH

CMD ["v2ray", "-confdir", "/etc/v2ray/config"]

⁠docker-compose

    v2ray:
        image: altshift/v2ray:latest
        container_name: v2ray
        restart: always
        volumes:
            - ./v2ray/config:/etc/v2ray/config
            - ./v2ray/log:/etc/v2ray/log

Tag summary

Content type

Image

Digest

Size

27 MB

Last updated

almost 5 years ago

docker pull altshift/v2ray