lydgs commited on
Commit
69f81df
·
verified ·
1 Parent(s): 6351d1a

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +8 -2
Dockerfile CHANGED
@@ -3,8 +3,14 @@ FROM eceasy/cli-proxy-api:latest
3
  USER root
4
 
5
  # 1. 安装 Nginx 和 Go 兼容库
6
- RUN apk add --no-cache nginx libc6-compat gcompat bash curl
7
-
 
 
 
 
 
 
8
  # 2. 准备工作目录
9
  WORKDIR /app
10
  RUN cp /CLIProxyAPI/CLIProxyAPI ./cli-proxy-api && chmod +x ./cli-proxy-api
 
3
  USER root
4
 
5
  # 1. 安装 Nginx 和 Go 兼容库
6
+ RUN apt-get update && apt-get install -y \
7
+ nginx \
8
+ libc6-compat \ # 注意:Debian 不需要这个包,通常用 libc6 即可,建议去掉
9
+ gcompat \ # 这是 Alpine 特有的,Debian 不需要,可删除
10
+ bash \
11
+ curl \
12
+ && rm -rf /var/lib/apt/lists/*
13
+
14
  # 2. 准备工作目录
15
  WORKDIR /app
16
  RUN cp /CLIProxyAPI/CLIProxyAPI ./cli-proxy-api && chmod +x ./cli-proxy-api