From 8ed071bc29898b966f75a8247824e37d9d0850d9 Mon Sep 17 00:00:00 2001 From: whyour Date: Fri, 19 Mar 2021 21:13:23 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=9C=AA=E4=BD=BF=E7=94=A8?= =?UTF-8?q?=E4=BE=9D=E8=B5=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docker/Dockerfile | 3 ++- package.json | 25 ------------------------- 2 files changed, 2 insertions(+), 26 deletions(-) diff --git a/docker/Dockerfile b/docker/Dockerfile index e7d8030b..512203c4 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -38,9 +38,10 @@ RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories && yarn install \ && yarn build \ && yarn build-back \ + && yarn install --production \ && git clone -b ${JD_SCRIPTS_BRANCH} ${JD_SCRIPTS_URL} ${JD_DIR}/scripts \ && cd ${JD_DIR}/scripts \ - && npm install \ + && npm install --production\ && npm install -g pm2 \ && rm -rf /root/.npm WORKDIR ${JD_DIR} diff --git a/package.json b/package.json index 0d6e03f3..af9ed44a 100644 --- a/package.json +++ b/package.json @@ -25,68 +25,43 @@ "dependencies": { "@ant-design/pro-layout": "^6.5.0", "@umijs/preset-react": "1.x", - "agenda": "^3.1.0", - "agendash": "^1.0.0", - "argon2": "^0.27.0", "body-parser": "^1.19.0", "celebrate": "^13.0.3", "codemirror": "^5.59.4", "cors": "^2.8.5", "darkreader": "^4.9.27", "dotenv": "^8.2.0", - "errorhandler": "^1.5.1", - "event-dispatch": "^0.4.1", - "eventemitter3": "^4.0.7", "express": "^4.17.1", - "express-basic-auth": "^1.2.0", "express-jwt": "^6.0.0", - "form-data": "^4.0.0", "got": "^11.8.2", "jsonwebtoken": "^8.5.1", - "lodash": "^4.17.20", - "mailgun-js": "^0.22.0", - "method-override": "^3.0.0", - "moment": "^2.29.0", - "moment-timezone": "^0.5.31", "mongoose": "^5.10.6", - "morgan": "^1.10.0", "node-fetch": "^2.6.1", "qrcode.react": "^1.0.1", "react-codemirror2": "^7.2.1", "react-diff-viewer": "^3.1.1", "reflect-metadata": "^0.1.13", - "socks-proxy-agent": "^4.0.2", - "telegraf": "^4.0.3", "typedi": "^0.8.0", "umi": "^3.3.9", "umi-request": "^1.3.5", "winston": "^3.3.3" }, "devDependencies": { - "@types/agenda": "^2.0.9", "@types/cors": "^2.8.10", "@types/express": "^4.17.8", "@types/express-jwt": "^6.0.1", "@types/jsonwebtoken": "^8.5.0", - "@types/lodash": "^4.14.161", "@types/node": "^14.11.2", "@types/node-fetch": "^2.5.8", "@types/qrcode.react": "^1.0.1", "@types/react": "^17.0.0", "@types/react-dom": "^17.0.0", - "@typescript-eslint/eslint-plugin": "^4.2.0", - "@typescript-eslint/parser": "^4.2.0", "@umijs/test": "^3.3.9", - "eslint": "^7.9.0", - "eslint-config-prettier": "^6.11.0", - "eslint-plugin-prettier": "^3.1.4", "lint-staged": "^10.0.7", "nodemon": "^2.0.4", "prettier": "^2.2.0", "react": "17.x", "react-dom": "17.x", - "ts-node": "^9.0.0", - "tslint": "^5.20.1", "typescript": "^4.1.2", "yorkie": "^2.0.0" }