|
|
|
|
|
by xenophonf
433 days ago
|
|
That's bad practice because it hides build steps from `docker inspect`. Per https://github.com/docker-library/official-images#clarity: > Try to make the Dockerfile easy to understand/read. It may be tempting, for the sake of brevity, to put complicated initialization details into a standalone script and merely add a RUN command in the Dockerfile. However, this causes the resulting Dockerfile to be overly opaque, and such Dockerfiles are unlikely to pass review. Instead, it is recommended to put all the commands for initialization into the Dockerfile as appropriate RUN or ENV command combinations. To find good examples, look at the current official images. |
|