lydgs commited on
Commit
cd640eb
·
verified ·
1 Parent(s): 53a4418

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +8 -2
Dockerfile CHANGED
@@ -1,7 +1,14 @@
1
  # ========== 第一阶段:构建 ==========
2
  FROM node:20-slim AS builder
3
  WORKDIR /app
4
- RUN apt-get update && apt-get install -y git python3 make g++ && rm -rf /var/lib/apt/lists/*
 
 
 
 
 
 
 
5
  RUN git clone https://github.com/tashfeenahmed/freellmapi.git .
6
  RUN npm config set registry https://registry.npmmirror.com && npm install
7
  RUN npm run build
@@ -47,7 +54,6 @@ COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf
47
  COPY start.sh /start.sh
48
  RUN chmod +x /start.sh
49
 
50
- RUN apt-get update && apt-get install -y python3-requests && rm -rf /var/lib/apt/lists/*
51
  COPY scripts/sync_bailian_models.py /app/scripts/sync_bailian_models.py
52
  RUN chmod +x /app/scripts/sync_bailian_models.py
53
  # 使用启动脚本作为入口点
 
1
  # ========== 第一阶段:构建 ==========
2
  FROM node:20-slim AS builder
3
  WORKDIR /app
4
+ # 安装运行时依赖:cron, supervisor, python3, pip, requests
5
+ RUN apt-get update && apt-get install -y \
6
+ cron \
7
+ supervisor \
8
+ python3 \
9
+ python3-pip \
10
+ python3-requests \
11
+ && rm -rf /var/lib/apt/lists/*
12
  RUN git clone https://github.com/tashfeenahmed/freellmapi.git .
13
  RUN npm config set registry https://registry.npmmirror.com && npm install
14
  RUN npm run build
 
54
  COPY start.sh /start.sh
55
  RUN chmod +x /start.sh
56
 
 
57
  COPY scripts/sync_bailian_models.py /app/scripts/sync_bailian_models.py
58
  RUN chmod +x /app/scripts/sync_bailian_models.py
59
  # 使用启动脚本作为入口点