fix: moved jest to devdependencies for appsmithctl and updated dockerfile to exclude it during install (#26350)

Update:
- Mobed jest to` devDependenies` of package manifest.
- Updated Dockerfile to install utils with `--only=prod` arg for npm
install cmds.

Tested manually
This commit is contained in:
Sumesh Pradhan 2023-08-16 16:39:11 +05:30 committed by GitHub
parent dcc05ce8b5
commit 0fe6145435
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View File

@ -84,7 +84,7 @@ COPY ./deploy/docker/entrypoint.sh ./deploy/docker/scripts/* info.*json ./
# Add util tools
COPY ./deploy/docker/utils ./utils
RUN cd ./utils && npm install && npm install -g .
RUN cd ./utils && npm install --only=prod && npm install --only=prod -g .
# Add process config to be run by supervisord
COPY ./deploy/docker/templates/supervisord.conf /etc/supervisor/supervisord.conf

View File

@ -14,12 +14,14 @@
"dependencies": {
"cli-progress": "^3.11.2",
"dotenv": "10.0.0",
"jest": "^29.1.2",
"mongodb": "^5.7.0",
"nodemailer": "6.7.5",
"readline-sync": "1.4.10",
"shelljs": "0.8.5"
},
"devDependencies": {
"jest": "^29.1.2"
},
"bin": {
"appsmithctl": "./bin/index.js"
},