internetarchive/openlibrary

Use --no-install-recommends in dockerfiles

Open

#2,656 创建于 2019年11月19日

在 GitHub 查看
 (6 评论) (0 反应) (1 负责人)Python (1,172 fork)batch import
Good First IssueLead: @cdriniModule: DockerNeeds: ResponsePriority: 3Theme: DevelopmentType: Refactor/Clean-up

仓库指标

Star
 (4,626 star)
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.

贡献者指南