[ 
https://issues.apache.org/jira/browse/SINGA-358?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16468302#comment-16468302
 ] 

wangwei commented on SINGA-358:
-------------------------------

+1

> Docker containers could be reorganized
> --------------------------------------
>
>                 Key: SINGA-358
>                 URL: https://issues.apache.org/jira/browse/SINGA-358
>             Project: Singa
>          Issue Type: Improvement
>            Reporter: James Lamb
>            Priority: Trivial
>              Labels: Docker
>
> I would like to propose a few changes to the Dockerfiles found in tool/:
> [https://github.com/apache/incubator-singa/tree/master/tool/docker|https://github.com/apache/incubator-singa/tree/master/tool/docker]
> The size of the resulting image can be reduced by making the following 
> changes:
>  * consolidating all RUN commands into a single RUN layer (reducing the 
> number of layers)
>  * running {color:#14892c}yum clean all{color} (on CentOS) to clear out the 
> package cache
>  * running {color:#14892c}conda clean --all{color} (in the conda container) 
> to clear out cached package tarballs, abandoned package versions, and other 
> build artifacts from all the libraries that are conda installed
> I would also like to propose breaking out package installs onto multiple 
> lines for readability (both of the Dockerfile and diffs in git).
> I will be submitting a PR on GitHub shortly. Generating this issue first so I 
> can tag my PR to it.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to