Skip to content
This repository has been archived by the owner on Oct 2, 2020. It is now read-only.

Image is big (238MB), compared with node:alpine (59MB) #52

Open
akauppi opened this issue Oct 5, 2017 · 3 comments
Open

Image is big (238MB), compared with node:alpine (59MB) #52

akauppi opened this issue Oct 5, 2017 · 3 comments

Comments

@akauppi
Copy link

akauppi commented Oct 5, 2017

The Zalando image is remarkably big, compared with node:alpine: 238MB vs. 59MB.

Is this intentional / known, or something that should be looked into? I checked the Dockerfile and presume it's the gcc, make, python that bring the added weight in.

$ docker images | grep alpine
registry.opensource.zalan.do/stups/node                  8.4.0-alpine-31     d72ba3b27df6        2 weeks ago         238MB
node                                                     alpine              2a7d8107cda5        4 months ago        59.1MB
...
@ISO50
Copy link
Contributor

ISO50 commented Aug 23, 2018

    && apk add --no-cache --virtual .build-deps \
        binutils-gold \
        curl \
        g++ \
        gcc \
        gnupg \
        libgcc \
        linux-headers \
        make \
python \

@ISO50
Copy link
Contributor

ISO50 commented Aug 23, 2018

What do you think @kgalli do we need all that extra dependencies on the alpine image?

@kgalli
Copy link
Member

kgalli commented Aug 28, 2018

Short answer yes we do. Main reason: https://github.com/nodejs/node-gyp support. My main idea is to base from official node alpine image and we only put our certificates on top. That will free a lot of space. But will also follow all decisions the official docker node team follows like having yarn as default package manager.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants