Dockerfile base on official repository: https://hub.docker.com/r/v2ray/official
Usage: https://toutyrater.github.io/app/docker-deploy-v2ray.html
This repository Dockerfile:
FROM alpine:3.9 as builder
ARG VERSION
WORKDIR /download
ENV VERSION ${VERSION}
ENV RELEASE_URL https://github.com/v2ray/v2ray-core/releases/download/v${VERSION}/v2ray-linux-64.zip
RUN wget --no-check-certificate ${RELEASE_URL} && unzip v2ray-linux-64.zip
FROM alpine:3.9
LABEL maintainer "Steven Jobs <[email protected]>"
COPY --from=builder /download/v2ray /usr/bin/v2ray/
COPY --from=builder /download/v2ctl /usr/bin/v2ray/
COPY --from=builder /download/geoip.dat /usr/bin/v2ray/
COPY --from=builder /download/geosite.dat /usr/bin/v2ray/
COPY --from=builder /download/config.json /etc/v2ray/config.json
RUN set -ex && \
apk --no-cache add ca-certificates tzdata && \
ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && \
mkdir /var/log/v2ray/ &&\
chmod +x /usr/bin/v2ray/v2ctl && \
chmod +x /usr/bin/v2ray/v2ray
ENV PATH /usr/bin/v2ray:$PATH
CMD ["v2ray", "-config=/etc/v2ray/config.json"]
Content type
Image
Digest
Size
25 MB
Last updated
almost 7 years ago
docker pull ineva/v2ray