Skip to content

Remove unnecessary nix build dependencies from docker image #404

Description

@tegefaulkes

Specification

Following #399 We've reduced the size of the docker image to less that the previous size. But digging deeper into the image we found that there are extra nix store paths that are being included which may not need to be there. Mainly there is the inclusion of the polykey-cli so there is at munimum, 42MB that doesn't need to be included.

The nix store seems to be determined by the nix dependencies of the derivation being copied to the docker image. When testing I saw that these are included after the contents are copied to root. So its not possible to remove the nix dependencies using an extra build script.

Image

Additional context

Tasks

  1. Identify why polykey-cli is being included in the nix store paths of the docker image.
  2. Ensure that only runtime dependencies are included in the docker image.
  3. Apply the fix.

Activity

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions