Skip to content

shrink runtime image size #1

Closed
Closed

Description

@fexd12

The runtime image is heavy. The single-stage Dockerfile bakes full Go packages, source code, etc..
Theres some optimization ideas we can use like Multi-stage build, separate builds and runtime layers.

I can do this if you thinks its acceptable

I build the original docker image 312MB
with the multi stage layers only with the binary wserver: 18.5MB

Activity

  1. ceelsoin commented on May 28, 2026

    @ceelsoin
    Contributor

    Hello, you can contribute opening a pull request with this approach.

    Remember that actual docker image bundle the correios zipcode data inside.

  2. fexd12 commented on May 30, 2026

    @fexd12
    ContributorAuthor

    I opened a pull request with the edition, can you test with the actual implementatiton works with the correios zipcode data inside? Also verifies with the size gets smaller than older version

  3. ceelsoin commented on Jun 17, 2026

    @ceelsoin
    Contributor

    Merged in #2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions