elasticdl
elasticdl copied to clipboard
It is redundant to git clone TensorFlow repo.
We only need those proto files to build elasticdl.proto, so we can only download those files by wget. Because TensorFlow repo is huge which makes the image huge.
https://github.com/sql-machine-learning/elasticdl/blob/5fac16d29854001f8f68d4a0d514f4f57b95b8eb/elasticdl/docker/Dockerfile#L57-L60
You can delete unnecessary files after cloning TensorFlow in the same RUN command. It will both keep the image small and avoid wget network issue.
You can delete unnecessary files after cloning TensorFlow in the same RUN command. It will both keep the image small and avoid wget network issue.
Good suggestion!