Docker caches the images after each command. In this case, this can lead to caching issues, if Docker uses a cache from just between the "apt-get update"- and the "apt-get install"-line, since it might happen, that the package versions in apt's database from the cached image aren't available on the ubuntu-servers anymore.
This fix ensures, that the package-versions are always updated, just before they are installed.
Docker caches the images after each command. In this case, this can lead to caching issues, if Docker uses a cache from just between the "apt-get update"- and the "apt-get install"-line, since it might happen, that the package versions in apt's database from the cached image aren't available on the ubuntu-servers anymore.
This fix ensures, that the package-versions are always updated, just before they are installed.