Skip to content

Commit 51d07b8

Browse files
authored
Update Dockerfile
1 parent 9ec05c0 commit 51d07b8

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

Dockerfile

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
# 使用 Alpine 基础镜像
2-
FROM alpine:latest
1+
# 改用 Debian 基础镜像(更稳定的包管理)
2+
FROM debian:bookworm-slim
33

4-
# 关键修复:替换为国内镜像源(阿里云)
5-
RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories
4+
# 安装基础工具(apt 国内源默认已加速)
5+
RUN apt-get update && apt-get install -y \
6+
bash \
7+
coreutils \
8+
&& rm -rf /var/lib/apt/lists/*
69

7-
# 安装必要工具(合并更新与安装步骤)
8-
RUN apk update && apk add --no-cache bash coreutils
9-
10-
# 复制所有文件到镜像(用于测试 secret leakage)
10+
# 复制所有文件到镜像(保留完整测试环境)
1111
COPY . /app
1212

1313
# 设置工作目录

0 commit comments

Comments
 (0)