Simford.Dong
commited on
Commit
·
89fb578
1
Parent(s):
ce3413f
chore: set timezone to Asia/Shanghai
Browse files- Dockerfile +4 -2
Dockerfile
CHANGED
|
@@ -3,13 +3,15 @@ FROM node:22-slim
|
|
| 3 |
|
| 4 |
# 1. 安装系统依赖
|
| 5 |
# 包含:git (拉取依赖), openssh-client (解决构建报错), build-essential/g++/make (编译原生模块), python3 (运行同步脚本)
|
| 6 |
-
# 新增:curl, chromium (浏览器工具支持), 以及运行 Chromium
|
| 7 |
RUN apt-get update && apt-get install -y --no-install-recommends \
|
| 8 |
git openssh-client build-essential python3 python3-pip \
|
| 9 |
-
g++ make ca-certificates curl chromium \
|
| 10 |
libnss3 libatk1.0-0 libatk-bridge2.0-0 libcups2 libdrm2 \
|
| 11 |
libxcomposite1 libxdamage1 libxext6 libxfixes3 libxrandr2 \
|
| 12 |
libgbm1 libasound2 libpangocairo-1.0-0 libpango-1.0-0 \
|
|
|
|
|
|
|
| 13 |
&& rm -rf /var/lib/apt/lists/*
|
| 14 |
|
| 15 |
# 2. 安装 Hugging Face 命令行工具
|
|
|
|
| 3 |
|
| 4 |
# 1. 安装系统依赖
|
| 5 |
# 包含:git (拉取依赖), openssh-client (解决构建报错), build-essential/g++/make (编译原生模块), python3 (运行同步脚本)
|
| 6 |
+
# 新增:curl, chromium (浏览器工具支持), 以及运行 Chromium 所需的库, tzdata (设置时区)
|
| 7 |
RUN apt-get update && apt-get install -y --no-install-recommends \
|
| 8 |
git openssh-client build-essential python3 python3-pip \
|
| 9 |
+
g++ make ca-certificates curl chromium tzdata \
|
| 10 |
libnss3 libatk1.0-0 libatk-bridge2.0-0 libcups2 libdrm2 \
|
| 11 |
libxcomposite1 libxdamage1 libxext6 libxfixes3 libxrandr2 \
|
| 12 |
libgbm1 libasound2 libpangocairo-1.0-0 libpango-1.0-0 \
|
| 13 |
+
&& ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \
|
| 14 |
+
&& echo "Asia/Shanghai" > /etc/timezone \
|
| 15 |
&& rm -rf /var/lib/apt/lists/*
|
| 16 |
|
| 17 |
# 2. 安装 Hugging Face 命令行工具
|