-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a Dockerfile for the command-line interface (#1008)
* Add a Dockerfile for the command-line interface * Check out tag 'stable' for building the CLI in Docker this tag points to the latest release/tagged version. * Update README.md for Docker as per review comments * Capitalize Python * Fix code snippet indention in the README for Docker
- Loading branch information
Showing
2 changed files
with
71 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
FROM ubuntu:16.04 | ||
|
||
RUN apt-get update && \ | ||
apt-get install -y cmake build-essential gcc g++ git && \ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
RUN git clone --recursive --branch stable https://github.com/Microsoft/LightGBM && \ | ||
mkdir LightGBM/build && \ | ||
cd LightGBM/build && \ | ||
cmake .. && \ | ||
make -j4 && \ | ||
make install && \ | ||
cd ../.. && \ | ||
rm -rf LightGBM | ||
|
||
ENTRYPOINT ["lightgbm"] |