A Dockerfile for building v2ray with balenalib/raspberrypi3:buster as the base image
docker pull b1iz4rclavid/rpi-v2ray
docker run -d -p <docker_host_port>:<config_server_inbound_port> -v <folder_with_config_json>:/home/v2ray/ -it b1iz4rclavid/rpi-v2ray
docker exec -it <container id> /bin/bash
Customization is done by updating config.json at mount it to the container
Please refer to https://www.v2ray.com/en/ for configuration details
You will need to have docker installed on your rpi. Please refer to https://www.raspberrypi.org/blog/docker-comes-to-raspberry-pi/
curl -sSL https://get.docker.com | sh