优化部署配置:修复端口、优化前端依赖、更新docker-compose
Some checks failed
Deploy to Server / deploy (push) Failing after 50m2s
Some checks failed
Deploy to Server / deploy (push) Failing after 50m2s
This commit is contained in:
@@ -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 . .
|
||||
|
||||
Reference in New Issue
Block a user