fix: 更新 Dockerfile 中的 Node.js 版本至 24,修复相关依赖 #684
This commit is contained in:
parent
482f94a711
commit
a031cf0b56
2
.gitignore
vendored
2
.gitignore
vendored
@ -76,3 +76,5 @@ docs/vibe
|
||||
.cursorrules
|
||||
|
||||
/models
|
||||
|
||||
.taskr/
|
||||
@ -1,10 +1,10 @@
|
||||
# 使用轻量级Python基础镜像
|
||||
FROM python:3.12-slim
|
||||
COPY --from=ghcr.io/astral-sh/uv:0.7.2 /uv /uvx /bin/
|
||||
COPY --from=node:20-slim /usr/local/bin /usr/local/bin
|
||||
COPY --from=node:20-slim /usr/local/lib/node_modules /usr/local/lib/node_modules
|
||||
COPY --from=node:20-slim /usr/local/include /usr/local/include
|
||||
COPY --from=node:20-slim /usr/local/share /usr/local/share
|
||||
COPY --from=node:24-slim /usr/local/bin /usr/local/bin
|
||||
COPY --from=node:24-slim /usr/local/lib/node_modules /usr/local/lib/node_modules
|
||||
COPY --from=node:24-slim /usr/local/include /usr/local/include
|
||||
COPY --from=node:24-slim /usr/local/share /usr/local/share
|
||||
|
||||
# 设置工作目录
|
||||
WORKDIR /app
|
||||
|
||||
@ -6,7 +6,7 @@ ENV PYTHONDONTWRITEBYTECODE=1 \
|
||||
PYTHONUNBUFFERED=1
|
||||
|
||||
COPY requirements.txt /app/requirements.txt
|
||||
RUN pip install --no-cache-dir -r /app/requirements.txt
|
||||
RUN pip install --no-cache-dir -r /app/requirements.txt --index https://pypi.tuna.tsinghua.edu.cn/simple
|
||||
|
||||
COPY app.py /app/app.py
|
||||
|
||||
|
||||
@ -3,3 +3,4 @@ uvicorn[standard]>=0.34.2
|
||||
kubernetes>=31.0.0
|
||||
docker>=7.1.0
|
||||
python-dotenv>=1.0.0
|
||||
websockets>=12,<16
|
||||
|
||||
@ -16,7 +16,8 @@ Write-Host "开始导出Docker镜像到 $OutputFile..." -ForegroundColor Cyan
|
||||
$Images = @(
|
||||
"python:3.11-slim",
|
||||
"ghcr.io/astral-sh/uv:0.7.2",
|
||||
"node:20-alpine",
|
||||
"node:24-alpine",
|
||||
"node:24-slim",
|
||||
"nginx:alpine",
|
||||
"neo4j:5.26",
|
||||
"quay.io/coreos/etcd:v3.5.5",
|
||||
|
||||
@ -13,8 +13,8 @@ echo "开始导出 Docker 镜像到 $OUTPUT_FILE..."
|
||||
IMAGES=(
|
||||
"python:3.12-slim",
|
||||
"ghcr.io/astral-sh/uv:0.7.2",
|
||||
"node:20-alpine",
|
||||
"node:20-slim",
|
||||
"node:24-alpine",
|
||||
"node:24-slim",
|
||||
"nginx:alpine",
|
||||
"neo4j:5.26",
|
||||
"quay.io/coreos/etcd:v3.5.5",
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
# 开发阶段
|
||||
FROM node:20-alpine AS development
|
||||
FROM node:24-alpine AS development
|
||||
WORKDIR /app
|
||||
ENV TZ=Asia/Shanghai
|
||||
|
||||
@ -22,7 +22,7 @@ EXPOSE 5173
|
||||
# 启动开发服务器的命令在 docker-compose 文件中定义
|
||||
|
||||
# 生产阶段
|
||||
FROM node:20-alpine AS build-stage
|
||||
FROM node:24-alpine AS build-stage
|
||||
WORKDIR /app
|
||||
|
||||
# 安装 pnpm
|
||||
|
||||
@ -119,8 +119,8 @@ Write-Host "=========================" -ForegroundColor Cyan
|
||||
# List of Docker images to pull
|
||||
$images = @(
|
||||
"python:3.12-slim",
|
||||
"node:20-slim",
|
||||
"node:20-alpine",
|
||||
"node:24-slim",
|
||||
"node:24-alpine",
|
||||
"milvusdb/milvus:v2.5.6",
|
||||
"neo4j:5.26",
|
||||
"minio/minio:RELEASE.2023-03-20T20-16-18Z",
|
||||
|
||||
@ -115,8 +115,8 @@ echo "========================="
|
||||
# List of Docker images to pull
|
||||
images=(
|
||||
"python:3.12-slim"
|
||||
"node:20-slim"
|
||||
"node:20-alpine"
|
||||
"node:24-slim"
|
||||
"node:24-alpine"
|
||||
"milvusdb/milvus:v2.5.6"
|
||||
"neo4j:5.26"
|
||||
"minio/minio:RELEASE.2023-03-20T20-16-18Z"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user