cdmikechen opened a new pull request #888: URL: https://github.com/apache/submarine/pull/888
### What is this PR for? Reduce the image size from 8G to 5G by: 1. Clear cache files after codna installation. 2. Remove node_modules folder after jupyter lab has been built. 3. git clone by `depth=1` and put the deleted folder command in the same layer. At present, the biggest size of the image are `tensorflow` and `torch` package. This situation has not been solved for this PR. ### What type of PR is it? Improvement ### Todos * [x] - Reduce the image size by adjusting the dockerfile ### What is the Jira issue? https://issues.apache.org/jira/browse/SUBMARINE-1200 ### How should this be tested? The image can be built locally (<https://github.com/shangyuantech/submarine/blob/SUBMARINE-1200/dev-support/docker-images/jupyter-gpu/Dockerfile>). ### Screenshots (if appropriate) No ### Questions: * Do the license files need updating? No * Are there breaking changes for older versions? No * Does this need new documentation? No -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
