Github user cricket007 commented on the issue:
https://github.com/apache/nifi/pull/1372
Why is this image so large? Did someone not realize that `chown` is
doubling the layer that downloads the binary?
`docker history --no-trunc apache/nifi:1.3.0`
```
3 GID=50 NIFI_VERSION=1.3.0 UID=1000 /bin/sh -c chown -R nifi:nifi
$NIFI_HOME => 983 MB
3 GID=50 NIFI_VERSION=1.3.0 UID=1000 /bin/sh -c curl -fSL $NIFI_BINARY_URL
-o $NIFI_BASE_DIR/nifi-$NIFI_VERSION-bin.tar.gz ... => 983 MB
```
For comparison, I have built this myself (granted, using openjdk-alpine and
without switching user accounts), but still, a 2.4x size difference!
```
local/nifi 1.3.0 f28ea17bf37b 15 minutes ago
1.07 GB
apache/nifi 1.3.0 ccd137e275bc 32 hours ago
2.58 GB
```
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---