diff --git a/frontend/Dockerfile.playwright b/frontend/Dockerfile.playwright index e76ac15..b5f288c 100644 --- a/frontend/Dockerfile.playwright +++ b/frontend/Dockerfile.playwright @@ -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} + diff --git a/ysn.md b/ysn.md new file mode 100644 index 0000000..4a9ba8c --- /dev/null +++ b/ysn.md @@ -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} +``` \ No newline at end of file