[
https://issues.apache.org/jira/browse/NIFI-3260?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16045715#comment-16045715
]
ASF GitHub Bot commented on NIFI-3260:
--------------------------------------
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
```
> Official Docker Image
> ---------------------
>
> Key: NIFI-3260
> URL: https://issues.apache.org/jira/browse/NIFI-3260
> Project: Apache NiFi
> Issue Type: Improvement
> Components: Tools and Build
> Reporter: Jeremy Dyer
> Assignee: Aldrin Piri
> Labels: docker
> Fix For: 1.2.0
>
>
> This JIRA is for setting up a Docker folder structure within the NiFi source
> code as discussed in the dev mailing list at
> https://lists.apache.org/thread.html/e905a559cb01b30f1a7032cec5c9605685f27a65bdf7fee41b735089@%3Cdev.nifi.apache.org%3E
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)