internetarchive/openlibrary

Use --no-install-recommends in dockerfiles

開放

#2,656 建立於 2019年11月19日

 (6 則留言) (0 個反應) (1 位負責人)Python (1,957 個分叉)batch import
Good First IssueLead: @cdriniModule: DockerNeeds: ResponsePriority: 3Theme: DevelopmentType: Refactor/Clean-up

倉庫指標

星標
 (6,608 顆星)
PR 合併指標
 (平均合併 6天 2小時) (30 天內合併 126 個 PR)

描述

Anywhere we use apt-get install in our Dockerfiles, we should also add --no-install-recommends. According to https://ubuntu.com/blog/we-reduced-our-docker-images-by-60-with-no-install-recommends this creates smaller images which build faster. Note:

It is important to keep in mind that doing this could result in some missing libraries in your projects which you may have to add back explicitly, but this will ultimately give you more control in the dependencies in your project.

貢獻者指南