diff --git a/Dockerfile b/Dockerfile index a29c4745dd..8abf6b9352 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 diff --git a/deploy/docker/utils/package.json b/deploy/docker/utils/package.json index fa8f13ca84..d3916cec97 100644 --- a/deploy/docker/utils/package.json +++ b/deploy/docker/utils/package.json @@ -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" },