I noticed the Dockerfile for the alpine images have the following in them:
# Get Dependencies
COPY ./nsolid-bundle-${NSOLID_VERSION}/nsolid-*${NODEJS_LTS}-alpine-x64.tar.gz .
# later it does the following in a RUN command
# Cleanup
&& rm nsolid*.tar.gz \
&& apk del .build-deps
Unfortunately since the tar.gz file is added in a separate layer removing the file as part of the RUN step doesn't reduce the image size. I would recommend either using ADD which can extract the contents of the archive. Or that you wget the file as part of the RUN command.
From the Dockerfile reference on ADD:
If is a local tar archive in a recognized compression format (identity, gzip,
bzip2 or xz) then it is unpacked as a directory.
I noticed the
Dockerfilefor the alpine images have the following in them:Unfortunately since the
tar.gzfile is added in a separate layer removing the file as part of theRUNstep doesn't reduce the image size. I would recommend either usingADDwhich can extract the contents of the archive. Or that youwgetthe file as part of theRUNcommand.From the Dockerfile reference on
ADD: