优化部署配置:修复端口、优化前端依赖、更新docker-compose
Some checks failed
Deploy to Server / deploy (push) Failing after 50m2s

This commit is contained in:
爽哒哒
2026-03-19 18:55:35 +08:00
parent d7a18b209f
commit f33b188922
4 changed files with 37 additions and 109 deletions

View File

@@ -7,10 +7,10 @@ RUN apk add --no-cache autoconf automake libtool make g++ zlib-dev nasm python3
# 设置工作目录
WORKDIR /app
# 安装依赖(使用缓存层)
# 安装依赖(使用缓存层,只安装生产依赖
COPY package.json package-lock.json* ./
RUN --mount=type=cache,target=/root/.npm \
npm install --registry=https://registry.npmmirror.com --prefer-offline
npm ci --omit=dev --no-audit --no-fund --registry=https://registry.npmmirror.com --prefer-offline
# 复制项目文件
COPY . .