zhepama commited on
Commit
b40acec
·
verified ·
1 Parent(s): aad3c40

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -3
Dockerfile CHANGED
@@ -1,13 +1,13 @@
1
  FROM zhezzma/v2fly-core:latest
2
 
3
- # 安装envsubst工具(通常在gettext包中)
4
- RUN apt-get update && apt-get install -y gettext-base && rm -rf /var/lib/apt/lists/*
5
 
6
  # 复制配置模板
7
  COPY config.json.template /etc/v2ray/config.json.template
8
 
9
  # 创建启动脚本
10
- RUN echo '#!/bin/bash\n\
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\