Update Dockerfile
Browse files- Dockerfile +3 -3
Dockerfile
CHANGED
@@ -1,13 +1,13 @@
|
|
1 |
FROM zhezzma/v2fly-core:latest
|
2 |
|
3 |
-
#
|
4 |
-
RUN
|
5 |
|
6 |
# 复制配置模板
|
7 |
COPY config.json.template /etc/v2ray/config.json.template
|
8 |
|
9 |
# 创建启动脚本
|
10 |
-
RUN echo '#!/bin/
|
11 |
if [ -z "$UUID" ]; then\n\
|
12 |
echo "错误: UUID环境变量未设置"\n\
|
13 |
exit 1\n\
|
|
|
1 |
FROM zhezzma/v2fly-core:latest
|
2 |
|
3 |
+
# 在Alpine Linux中安装gettext包(包含envsubst工具)
|
4 |
+
RUN apk add --no-cache gettext
|
5 |
|
6 |
# 复制配置模板
|
7 |
COPY config.json.template /etc/v2ray/config.json.template
|
8 |
|
9 |
# 创建启动脚本
|
10 |
+
RUN echo '#!/bin/sh\n\
|
11 |
if [ -z "$UUID" ]; then\n\
|
12 |
echo "错误: UUID环境变量未设置"\n\
|
13 |
exit 1\n\
|