stumpylog opened a new pull request, #17:
URL: https://github.com/apache/tika-docker/pull/17

   This PR aims to simplify the multi-stage building and reduce the apt caching 
which was left over in the image, resulting in a smaller image size.
   
   As Docker images use an overlay file system, removing file(s) which were 
created in one layer from a different layer doesn't remove the file's size from 
the final image, just removes the file from being visible essentially.  
   
   So now the `runtime` stage installs necessary packages and does the apt 
clean and cache removal in the same step, instead of trying to cleanup what 
`dependencies` added to the image.  The `fetch_tika` stage does just that 
still.  No removal of apt packages or caching matters here, as only the jar is 
copied to `runtime`.
   
   Building manually and running `docker image ls` shows around a 50MB 
reduction in image size compared to the original.


-- 
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: dev-unsubscr...@tika.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to