Browse Source

dockerfile

release_0.0.3
巴林闲侠 2 years ago
parent
commit
067001fd6a
  1. 4
      code/api/Dockerfile
  2. 2
      code/api/app/lib/schedule/index.js

4
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

2
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,
}

Loading…
Cancel
Save