zhepama commited on
Commit
6b46f30
·
verified ·
1 Parent(s): a8ef494

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +11 -0
Dockerfile ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # 步骤 1: 继承自 zhezzma/v2fly-core 镜像
2
+ FROM zhezzma/v2fly-core:latest
3
+
4
+ # 步骤 2: 将本地的 config.json 文件复制到镜像内的 /etc/v2ray/ 目录下
5
+ COPY config.json /etc/v2ray/config.json
6
+
7
+ # 步骤 3: 设置容器启动时要执行的命令
8
+ # 基础镜像的 ENTRYPOINT 是 ["/usr/bin/v2ray"]
9
+ # CMD 会作为参数追加到 ENTRYPOINT 后面
10
+ # 最终执行的命令是: /usr/bin/v2ray run -config /etc/v2ray/config.json
11
+ CMD ["run", "-config", "/etc/v2ray/config.json"]