Skip to content

libvips & libvips-dev with docker makes the docker image so large #370

Closed
@houssemFat

Description

@houssemFat

Hi, thank you for the fantastic work with libvips.

I'm not sure if this is the right repo to report my issue but any help would be appreciated .

I'm using ruby-vips (with active storage for rails) in a docker based on ruby:3.1.3-slim-bullseye. For that, i need to install libvips-dev or libvips (I tested the both). The result docker image size is too large and when i did some inspection i noticed that libvips layer takes a considerable size. I created simple docker file for testing purpose.

Env Mac :
MacOs Big Sur , V 11.6 (20G165) , MacBook Air (M1, 2020)
Docker version 20.10.13

** Ubuntu :**
Ubuntu 22.04.1 LTS
Docker version 20.10.21, build 20.10.21-0ubuntu1~22.04.3

test Dockerfile for libvips-dev :

FROM ruby:3.1.3-slim-bullseye

RUN bash -c "set -o pipefail  && apt-get update "

RUN bash -c "apt-get install -y libvips-dev"

ENTRYPOINT ["tail", "-f", "/dev/null"]

#CMD ["sh", "-c", "echo 'test'"]

Inspection result

image

I tested the use case with libvips with the example below :

Simple Dockerfile to reproduce the same use case with libvips :

FROM ruby:3.1.3-slim-bullseye

RUN bash -c "set -o pipefail  && apt-get update "

RUN bash -c "set -o pipefail && apt-get install -y libvips"

ENTRYPOINT ["tail", "-f", "/dev/null"]

image

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