fix some special error
Some checks failed
Deploy to Staging / deploy (push) Has been cancelled
Lint Backend / lint-backend (push) Has been cancelled
Playwright Tests / changes (push) Has been cancelled
Test Backend / test-backend (push) Has been cancelled
Test Docker Compose / test-docker-compose (push) Has been cancelled
Playwright Tests / test-playwright (1, 4) (push) Has been cancelled
Playwright Tests / test-playwright (2, 4) (push) Has been cancelled
Playwright Tests / test-playwright (3, 4) (push) Has been cancelled
Playwright Tests / test-playwright (4, 4) (push) Has been cancelled
Playwright Tests / merge-playwright-reports (push) Has been cancelled
Playwright Tests / alls-green-playwright (push) Has been cancelled
Issue Manager / issue-manager (push) Has been cancelled

This commit is contained in:
bbh
2025-07-22 22:53:54 +08:00
parent ac60caeaaa
commit e6c17252e3
2 changed files with 38 additions and 3 deletions

View File

@@ -1,13 +1,29 @@
# FROM node:20
# WORKDIR /app
# COPY package*.json /app/
# RUN npm install
# RUN npx -y playwright install --with-deps
# COPY ./ /app/
# ARG VITE_API_URL=${VITE_API_URL}
FROM node:20
WORKDIR /app
COPY package*.json /app/
RUN npm config set registry https://registry.npmmirror.com/
RUN npm install
RUN npx -y playwright install --with-deps
RUN npm install playwright
COPY ./ /app/
ARG VITE_API_URL=${VITE_API_URL}

19
ysn.md Normal file
View File

@@ -0,0 +1,19 @@
# 该项目适配大陆的修订
- 运行compose ,如果有无法自动下载的,可以手动下载
- 前端dockerfile.playwright ,修改为
```dockerfile
FROM node:20
WORKDIR /app
COPY package*.json /app/
RUN npm config set registry https://registry.npmmirror.com/
RUN npm install playwright
COPY ./ /app/
ARG VITE_API_URL=${VITE_API_URL}
```