This commit is contained in:
aaron 2025-05-31 23:02:44 +08:00
parent 0034f08b16
commit 971a47d0cc
3 changed files with 6 additions and 8 deletions

View File

@ -4,14 +4,11 @@ FROM node:20-alpine as build-stage
# 设置工作目录 # 设置工作目录
WORKDIR /app WORKDIR /app
# # 设置 npm 淘宝镜像源
# RUN npm config set registry http://mirrors.cloud.tencent.com/npm/
# 复制package.json和package-lock.json # 复制package.json和package-lock.json
COPY package*.json ./ COPY package*.json ./
# 安装依赖 # 安装依赖处理rollup问题
RUN npm install RUN npm ci --legacy-peer-deps || npm install --legacy-peer-deps
# 复制项目文件 # 复制项目文件
COPY . . COPY . .

View File

@ -1,11 +1,9 @@
version: '3'
services: services:
app: app:
build: build:
context: . context: .
dockerfile: Dockerfile dockerfile: Dockerfile
image: tradus-web:1.3.33 image: tradus-web:1.3.34
container_name: tradus-web container_name: tradus-web
ports: ports:
- '6000:80' - '6000:80'

View File

@ -14,6 +14,9 @@
"lint": "eslint . --fix", "lint": "eslint . --fix",
"format": "prettier --write src/" "format": "prettier --write src/"
}, },
"overrides": {
"rollup": "^4.0.0"
},
"dependencies": { "dependencies": {
"marked": "^15.0.11", "marked": "^15.0.11",
"mermaid": "^11.6.0", "mermaid": "^11.6.0",