Skip to content

Docker image is bloated #202

Closed
Closed

Description

@avandecreme

Starting with this change eeb3fab#diff-dd2c0eb6ea5cfc6c4bd4eac30934e2d5746747af48fef6da689e85b752f39557 the docker image is embedding the rust tooling as well as temporary build artifacts.

That makes the image go from 33MB to ~700MB:
https://hub.docker.com/r/alexliesenfeld/httpmock/tags
https://hub.docker.com/r/httpmock/httpmock/tags

Would you be interested by a fix?

Also, would you be interested by a FROM scratch image using musl?

Activity

  1. alexliesenfeld commented on Dec 24, 2025

    @alexliesenfeld
    Member

    Hi @avandecreme. Sure, that would be nice! We should just make sure that all tests pass with the new image (especially HTTPS which required ca-certificates package), but I can help with that.

  2. added
    enhancement
    on Jan 5, 2026
  3. FalkWoldmann commented on Jul 5, 2026

    @FalkWoldmann
    Member

    Hi @avandecreme, I re-introduced the multi-stage build. Do you see a decrease in payload size now?

  4. FalkWoldmann commented on Oct 6, 2026

    @FalkWoldmann
    Member

    The multi-stage build is back on master (1231c63), so the runtime image is Debian slim again without the Rust toolchain and build artifacts. It ships with the next image release. Closing, let us know if the size still looks off once that is out.

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

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions