Skip to content

Docker image size increased to 4GB in amazon ECR #312

@otoukebri-bw

Description

@otoukebri-bw

Describe the bug
A clear and concise description of what the bug is.
After adding only llm_guard dependency to project and building project as docker image, the docker image size increase a lot it went from 230 MB to 4283 MB by just adding llm_guard >=0.3.15,<=0.3.15
To Reproduce
Steps to reproduce the behavior:

  1. I have only added llm_guard >=0.3.15,<=0.3.15 to requirements.txt
  2. project uses pyhton 3.12-slim (FROM public.ecr.aws/docker/library/python:3.12-slim)
  3. The project is built using amazon linux UBUNTU_2204
  4. The docker image is pushed to amzaon ECR
  5. The docker image size increased from 230 MB to 4283 MB in amzaon ECR

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