Skip to content

Optimise Docker image #1976

@adintegra

Description

@adintegra

We should further optimise the Docker image both in terms of size and interoperability. Specifically, we should:

Incorporate multi-stage build to optimise image size
This puts less strain on system resources (i.e. large file transfers) and should make deployments a little faster. Obviously, it also reduces storage requirements.

Properly handle system signals (e.g. SIGTERM)
This ensures so the container can be shutdown gracefully by the host environment and minimizes the risk of data loss or corruption.

Not run node as root
This helps to better secure the container.

Metadata

Metadata

Assignees

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions