Why "chown" followed by a COPY/ADD instruction increases the docker image size in Red Hat Enterprise Linux 7 ?
Issue
- Why "chown" followed by a COPY/ADD instruction increase the docker image size in Red Hat Enterprise Linux 7 ?
- Refer the below given Dockerfile. Container image built using the below Dockerfile would be increased by another 200MB
From alpine
ADD 200mbFile 200mbFile
RUN chown root:504 200mbFile
Environment
- Red Hat Enterprise Linux 7
- docker-1.12-X or docker-latest-1.13.1-X
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
