- 在editStorageForm中初始化oss_storage_quota_value和oss_quota_unit - 删除重复的旧配额说明块,保留新的当前配额设置显示 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
29 lines
541 B
Docker
29 lines
541 B
Docker
FROM node:20-alpine
|
|
|
|
WORKDIR /app
|
|
|
|
# 安装编译工具和健康检查所需的 wget
|
|
RUN apk add --no-cache python3 make g++ wget
|
|
|
|
# 复制 package 文件
|
|
COPY package*.json ./
|
|
|
|
# 安装依赖
|
|
RUN npm install --production
|
|
|
|
# 复制应用代码
|
|
COPY . .
|
|
|
|
# 创建数据目录
|
|
RUN mkdir -p /app/data /app/storage
|
|
|
|
# 暴露端口
|
|
EXPOSE 40001
|
|
|
|
# 健康检查
|
|
HEALTHCHECK --interval=30s --timeout=10s --start-period=40s --retries=3 \
|
|
CMD wget --spider -q http://localhost:40001/api/health || exit 1
|
|
|
|
# 启动应用
|
|
CMD ["node", "server.js"]
|