feat(docker): reduce the size of alpine docker images (#3973)

* reduce redundant code between the two alpine Dockerfiles
* reduce the docker image build times
* reduce the `n8n` image size from 1.17GB to 462MB
* reduce the `n8n-custom` image size from 671MB to 460MB
* reduce the size of npm tree by making all typing packages devDependencies

Partially resolves this ticket: N8N-3252
This commit is contained in:
कारतोफ्फेलस्क्रिप्ट™
2022-08-31 15:25:52 +02:00
committed by GitHub
parent 8fc9f07f39
commit 398adb23e8
13 changed files with 277 additions and 185 deletions

View File

@@ -48,15 +48,15 @@
"devDependencies": {
"@oclif/dev-cli": "^1.22.2",
"@types/copyfiles": "^2.1.1",
"@types/express": "^4.17.6",
"@types/inquirer": "^6.5.0",
"@types/node": "^16.11.22",
"@types/tmp": "^0.2.0",
"@types/vorpal": "^1.11.0"
},
"dependencies": {
"@oclif/command": "^1.5.18",
"@oclif/errors": "^1.2.2",
"@types/express": "^4.17.6",
"@types/node": "^16.11.22",
"change-case": "^4.1.1",
"copyfiles": "^2.1.1",
"inquirer": "^7.0.1",