3 ms·
Abuse, how? What does not abusing it look like? Not using it is not an option either; it would make for very boring containers.
by diarrhea 3y ago
Abuse, how? What does not abusing it look like? Not using it is not an option either; it would make for very boring containers.
- dharmab 3y agoWith RUN you want to: 1. Be as reproducible as possible. e.g. if you're using RUN to download a file, check the hash to ensure that someone building the image in the future gets the same file. Lock your dependency versions wherever possible. Sometimes this is impractical, e.g. OS packages in most Linux distros expect other packages to be mostly up to date. 2. Separate RUN commands so that more frequently changed content is created later in the Dockerfile, to maximize caching.