We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dockerfile
FROM node AS builder WORKDIR /opt/web COPY package.json package-lock.json ./ RUN npm config set registry https://registry.npm.taobao.org RUN npm install ENV PATH="./node_modules/.bin:$PATH" COPY . ./ ARG ENV ENV ENV=$ENV RUN npm run build FROM caddy as admin-web WORKDIR /var/www/html COPY --from=builder /opt/web/Caddyfile /etc/caddy/Caddyfile COPY --from=builder /opt/web/dist ./dist ENV TZ=Asia/Shanghai EXPOSE 80
使用的vite的模板,会在npm install的时候卡死。观察监控看到读磁盘被打满,180MB/s 的读 IO。 不知道有没有别个小伙伴有遇到这个问题。
vite
npm install
The text was updated successfully, but these errors were encountered:
好吧……不是docker的原因,我直接在云主机上npm run build也会出一样的问题。
docker
npm run build
node -v v16.13.2
npm -v 8.1.2
Sorry, something went wrong.
好吧……不是docker的原因,我直接在云主机上npm run build也会出一样的问题。 node -v v16.13.2 npm -v 8.1.2
现在还有这样的问题吗?
No branches or pull requests
Dockerfile
使用的
vite
的模板,会在npm install
的时候卡死。观察监控看到读磁盘被打满,180MB/s 的读 IO。不知道有没有别个小伙伴有遇到这个问题。
The text was updated successfully, but these errors were encountered: