mirror of
https://github.com/plankanban/planka.git
synced 2026-02-25 03:14:50 +03:00
[PR #202] [MERGED] Improve Docker cache efficiency and fix signal handling #952
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/plankanban/planka/pull/202
Author: @lorenz
Created: 2/5/2022
Status: ✅ Merged
Merged: 2/8/2022
Merged by: @meltyshev
Base:
master← Head:docker-improvements📝 Commits (1)
2aa8bb0Improve Docker cache efficiency and fix signal handling📊 Changes
2 files changed (+16 additions, -12 deletions)
View changed files
📝
Dockerfile(+13 -9)📝
docker-start.sh(+3 -3)📄 Description
The current Dockerfile performs an expensive install of all node modules for every source change. That's not necessary as npm install only depends on the
package.json,package-lock.jsonand.npmrcfiles. This change leads to much better use of Docker's layer cache, keeping all NPM packages in a cached layer as long as only code is changed.It also fixes an issue where SIGTERMs sent to the container wouldn't get delivered to NodeJS because bash ran as PID 1 and does not forward signals. By exec'ing into node it is now PID 1 inside the container and thus gets the SIGTERM directly.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.