forked from flashlight/flashlight
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Summary: **Original Issue**: This dicussion started [here](flashlight#225 (comment)) The main point of this PR is to update dockerfiles to use a multistage build, reducing build time and final image size. But it also adds to small but important features: - `.dockerignore` to avoid passing unnecessary files to the build context - `ccache` support to CMake > I'm sure that most of the packages installed with apt on some builds and especially on the final image can be removed. But you know better which ones to take out. This would further reduce the final image size | image | build-time | size | |--------------------------------|------------|--------| | cpu-base-consolidation-latest | 454.4s | 4.76GB | | cpu-latest | 433.6s | 3.38GB | | cuda-base-consolidation-latest | 970.3s | 13.7GB | | cuda-latest | 440.3s | 9.31GB | Pull Request resolved: flashlight#396 Reviewed By: jacobkahn Differential Revision: D25820782 Pulled By: tlikhomanenko fbshipit-source-id: eef3d0550dee862d9bbfb24aa06f716c92ef75e8
- Loading branch information
1 parent
b0fba70
commit 1f002f0
Showing
6 changed files
with
422 additions
and
213 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.