zalando-stups / docker-node

DEPRECATED: Docker image with Node.js and Zalando CA
8 stars 9 forks source link

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

Open akauppi opened 7 years ago

akauppi commented 7 years ago

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 commented 6 years ago
    && apk add --no-cache --virtual .build-deps \
        binutils-gold \
        curl \
        g++ \
        gcc \
        gnupg \
        libgcc \
        linux-headers \
        make \
python \
ISO50 commented 6 years ago

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

kgalli commented 6 years ago

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.