引入expect库到容器中

This commit is contained in:
aixianling
2024-10-18 12:08:09 +08:00
parent 8851f2703a
commit a748c2575b
2 changed files with 4 additions and 2 deletions

View File

@@ -1,6 +1,8 @@
FROM node:16
LABEL authors="kubbo"
RUN yum update -y && yum install -y expect
COPY . /app
WORKDIR /app
RUN npm i --registry=http://registry.npmmirror.com

View File

@@ -104,8 +104,8 @@ const handleZip = (id, ws) => {
const buildPath = {
web: 'base-web', wxwork: 'base-wxcp', mp: 'dvcp_v2_wxmp'
}[info.type] || {}
let path = `../${buildPath}`, {dist} = info
dist = dist || `../zips/${info.name}v${info.version || "1.0.0"}`
let path = `/${buildPath}`, {dist} = info
dist = dist || `/zips/${info.name}v${info.version || "1.0.0"}`
Promise.all([startUpdateSql(), execute(`./shell/update.sh ${info.name} ${path}`, signal)])
.then(cmd => progress.set(30, info?.id))
.then(() => execute(`cd ${path}&&npm run apps&&node bin/pages.js ${id}&&npm run build`, signal))