Skip to content
This repository was archived by the owner on May 19, 2022. It is now read-only.

feiyangprojects/container-v2ray-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

V2Ray-GO

Overview

Minimalistic Shadowsocks-NET specialized v2ray container image based on Apline linux.

Build

ARGS=()
for i in $(find ./VERSIONS/ -type f); do
  ARGS+=('--build-arg' "${i##*/}=$(< $i)")
done
docker build "${ARGS[@]}" --tag ${PWD##*/} \
       --label org.opencontainers.image.created="$(date --rfc-3339 seconds --utc)" \
       --label org.opencontainers.image.version=$(< DISPLAY_VERSION) \
       --label org.opencontainers.image.revision=$(git rev-parse HEAD) .

Push image to registry:

docker tag ${PWD##*/} $CONTAINER_REGISTRY_USERNAME/${PWD##*/}:$(< DISPLAY_VERSION)
docker tag ${PWD##*/} $CONTAINER_REGISTRY_USERNAME/${PWD##*/}:latest
docker push --all-tags $CONTAINER_REGISTRY_USERNAME/${PWD##*/}

Environment variables

Name Default value Description
V2RAY_LOCATION_ASSET /usr/local/share/v2ray Routing assets directory
V2RAY_LOCATION_CONFIG /config Configuration directory

For more environment variables, please refer to the official document for further info (Simp. Chinese only).

Run

docker run --detach \
       --network host \
       --restart always \
       --env KEY=VALUE \
       --volume $PATH_TO_CONFIG:/config \
       ghcr.io/fei1yang/v2ray-go:latest

To use Shadowsocks-NET specialized features, please refer to it's document for further details.

Note: Podman is recommended for use this container image due to its amazing automatic update feature, please refer to the official document for further details.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors