Skip to content

Commit c18bc1b

Browse files
committed
update:优化
1 parent 6bed8dd commit c18bc1b

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Dockerfile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
# 第一阶段:构建Python依赖
22
FROM python:3.10-slim AS builder
33

4+
# 安装系统依赖,包括编译工具
5+
RUN apt-get update && apt-get install -y \
6+
gcc \
7+
g++ \
8+
make \
9+
&& rm -rf /var/lib/apt/lists/*
10+
411
# 设置工作目录
512
WORKDIR /app
613

0 commit comments

Comments
 (0)