Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
rmetzler
on March 26, 2022
|
parent
|
context
|
favorite
| on:
`COPY –chmod` reduced the size of my container ima...
Also each RUN, COPY, ADD, etc. creates a new layer in the image so you should put commands which are related in the same command. The example in the blog post violates this principle, which is the main reason for the unexpected size.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: