Description
By calling chown as a secondary RUN command, you effectively double the size of image by creating a Docker layer of the same size as the extracted binary.
See GitHub discussion: https://github.com/apache/nifi/pull/1372#issuecomment-307592287
Expectation
The resultant Docker image should be no larger than the Base image + the size required by extracting the Nifi binaries.
Attachments
Issue Links
- is duplicated by
-
NIFI-4086 Docker image produced by Dockerfile is larger than needed
- Resolved
- relates to
-
MINIFI-352 Docker image is 2x the size due to chmod command
- Resolved
- links to