引入expect库到容器中
This commit is contained in:
@@ -1,6 +1,8 @@
|
|||||||
FROM node:16
|
FROM node:16
|
||||||
LABEL authors="kubbo"
|
LABEL authors="kubbo"
|
||||||
|
|
||||||
|
RUN yum update -y && yum install -y expect
|
||||||
|
|
||||||
COPY . /app
|
COPY . /app
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
RUN npm i --registry=http://registry.npmmirror.com
|
RUN npm i --registry=http://registry.npmmirror.com
|
||||||
|
|||||||
@@ -104,8 +104,8 @@ const handleZip = (id, ws) => {
|
|||||||
const buildPath = {
|
const buildPath = {
|
||||||
web: 'base-web', wxwork: 'base-wxcp', mp: 'dvcp_v2_wxmp'
|
web: 'base-web', wxwork: 'base-wxcp', mp: 'dvcp_v2_wxmp'
|
||||||
}[info.type] || {}
|
}[info.type] || {}
|
||||||
let path = `../${buildPath}`, {dist} = info
|
let path = `/${buildPath}`, {dist} = info
|
||||||
dist = dist || `../zips/${info.name}v${info.version || "1.0.0"}`
|
dist = dist || `/zips/${info.name}v${info.version || "1.0.0"}`
|
||||||
Promise.all([startUpdateSql(), execute(`./shell/update.sh ${info.name} ${path}`, signal)])
|
Promise.all([startUpdateSql(), execute(`./shell/update.sh ${info.name} ${path}`, signal)])
|
||||||
.then(cmd => progress.set(30, info?.id))
|
.then(cmd => progress.set(30, info?.id))
|
||||||
.then(() => execute(`cd ${path}&&npm run apps&&node bin/pages.js ${id}&&npm run build`, signal))
|
.then(() => execute(`cd ${path}&&npm run apps&&node bin/pages.js ${id}&&npm run build`, signal))
|
||||||
|
|||||||
Reference in New Issue
Block a user