lydgs commited on
Commit
dbb3932
·
verified ·
1 Parent(s): 90cd043

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -2
Dockerfile CHANGED
@@ -16,8 +16,13 @@ RUN npm run build
16
  # ========== 第二阶段:运行 ==========
17
  FROM node:20-slim AS runner
18
  WORKDIR /app
19
-
20
-
 
 
 
 
 
21
 
22
  # 安装 huggingface-hub
23
  RUN pip3 install huggingface-hub --break-system-packages || pip3 install huggingface-hub
 
16
  # ========== 第二阶段:运行 ==========
17
  FROM node:20-slim AS runner
18
  WORKDIR /app
19
+ # 安装运行时依赖:cron, supervisor, python3, pip
20
+ RUN apt-get update && apt-get install -y \
21
+ cron \
22
+ supervisor \
23
+ python3 \
24
+ python3-pip \
25
+ && rm -rf /var/lib/apt/lists/*
26
 
27
  # 安装 huggingface-hub
28
  RUN pip3 install huggingface-hub --break-system-packages || pip3 install huggingface-hub