-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
84 additions
and
48 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,15 @@ | ||
ARG BASE_IMAGE=unset | ||
ARG INSTALL_DIR=/opt/LightGBM | ||
|
||
# hadolint ignore=DL3006 | ||
FROM ${BASE_IMAGE} | ||
|
||
COPY LightGBM/ ${INSTALL_DIR}/ | ||
RUN --mount=type=bind,source=LightGBM,target=/tmp/LightGBM \ | ||
<<EOF | ||
cd /tmp/LightGBM | ||
|
||
RUN cd "${INSTALL_DIR}" && \ | ||
sh ./build-python.sh install --precompile && \ | ||
cd /opt && \ | ||
rm -rf "${INSTALL_DIR}" | ||
# build lightgbm package, install to site-packages/ | ||
sh ./build-python.sh install --precompile | ||
|
||
# clear pip's cache | ||
rm -rf ~/.cache | ||
EOF |
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 |
---|---|---|
@@ -1,15 +1,19 @@ | ||
ARG BASE_IMAGE=unset | ||
ARG INSTALL_DIR=/root/testing/LightGBM | ||
|
||
# hadolint ignore=DL3006 | ||
FROM ${BASE_IMAGE} | ||
|
||
COPY jupyter_notebook_config.py /root/.jupyter/jupyter_notebook_config.py | ||
COPY LightGBM/ ${INSTALL_DIR}/ | ||
|
||
RUN cd "${INSTALL_DIR}" && \ | ||
sh ./build-python.sh install --precompile && \ | ||
cd /root/ && \ | ||
rm -rf "${INSTALL_DIR}" | ||
RUN --mount=type=bind,source=LightGBM,target=/tmp/LightGBM \ | ||
<<EOF | ||
cd /tmp/LightGBM | ||
|
||
# build lightgbm package, install to site-packages/ | ||
sh ./build-python.sh install --precompile | ||
|
||
# clear pip's cache | ||
rm -rf ~/.cache | ||
EOF | ||
|
||
WORKDIR /root/testing/notebooks |
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