Explorar el Código

build: set v2ray binary as an entrypoint

Use command to add args.
Also, add a default command to make it backward compatible with v4.

Signed-off-by: Seena Fallah <seenafallah@gmail.com>
Seena Fallah hace 2 años
padre
commit
e738e05da3
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      release/container/Containerfile

+ 2 - 1
release/container/Containerfile

@@ -16,4 +16,5 @@ ENV v2ray.location.asset=/opt/v2ray/share
 
 COPY ./ /opt/v2ray/
 
-CMD ["/opt/v2ray/bin/v2ray"]
+ENTRYPOINT [ "/opt/v2ray/bin/v2ray" ]
+CMD [ "run", "-config", "/etc/v2ray/config.json" ]