diff --git a/code/api/Dockerfile b/code/api/Dockerfile index b64fd4f..b672393 100644 --- a/code/api/Dockerfile +++ b/code/api/Dockerfile @@ -1,4 +1,4 @@ -FROM repository.anxinyun.cn/devops/node:12-dev as builder +FROM registry.cn-hangzhou.aliyuncs.com/fs-devops/node:12-dev as builder COPY . /var/app @@ -12,7 +12,7 @@ RUN npm cache clean -f RUN rm -rf package-lock.json RUN npm install --registry http://10.8.30.22:7000 -FROM registry.cn-hangzhou.aliyuncs.com/fs-devops/node-16:7.22-06-20 +FROM registry.cn-hangzhou.aliyuncs.com/fs-devops/node:12 WORKDIR /app diff --git a/code/api/app/lib/schedule/index.js b/code/api/app/lib/schedule/index.js index 1b9b587..6681efa 100644 --- a/code/api/app/lib/schedule/index.js +++ b/code/api/app/lib/schedule/index.js @@ -9,7 +9,7 @@ module.exports = async function (app, opts) { for (let k of Object.keys(schedule)) { console.info(`定时任务 ${k} 启动`); } - app.fs.utils = { + app.fs.schedule = { ...app.fs.schedule, ...schedule, }