Skip to content

Karsajobs Backend takes too much image size #38

@kaenova

Description

@kaenova

Based on the build results on the Karsajobs backend (branch karsajobs), I see that all the source files are included in the image, and this creates big image size. These problems are such inconvenient for a student who has limited internet quota usage.

After finishing this learning course, we know that we build the binary and then run the image w/ the built binary. With that, why don't we create a multi-stage docker image build to reduce and minimize the size? Is there any concern from Dicoding to check the sources file in the image? I can try to create a PR to minimize the image using multi-stage image build. Let me know if I can do that. Thank you.

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