Skip to content

reducing image size #2

@kaczmarj

Description

@kaczmarj

Hi @vsoch - cool project! You might consider using multi-stage builds to reduce the image size. Basically, you install all the compile-time dependencies and build singularity in the first stage, and copy the artifacts and install run-time dependencies in the second stage.

I do this, for example, in this Dockerfile.

This does, however, remove the source code and other potentially useful build artifacts. If those are useful to this project, then I would advise against multi-stage builds.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions