Skip to content

Use multi-stage builds in Dockerfiles #36

@mochiruntime

Description

@mochiruntime

Should we use multi-stage builds?

This would improve the size and the security of the images, because the build tools would stay in the builder step image. Then we only transfer the required compiled assets and have a final image that is minimal and that only contains the runtime and the executed code.

See original discussion in #33 (comment)_

Other links:

Metadata

Metadata

Assignees

No one assigned

    Labels

    buildImproves the build system (devcontainer, dependencies, ...)

    Type

    No type

    Projects

    Status

    📋 Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions