Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
tianlh
LightGBM-DCU
Commits
fdb39237
Unverified
Commit
fdb39237
authored
Oct 07, 2019
by
Nikita Titov
Committed by
GitHub
Oct 07, 2019
Browse files
updated dockers (#2459)
parent
d7f8aa53
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
8 deletions
+9
-8
docker/dockerfile-python
docker/dockerfile-python
+5
-4
docker/gpu/dockerfile.gpu
docker/gpu/dockerfile.gpu
+4
-4
No files found.
docker/dockerfile-python
View file @
fdb39237
FROM ubuntu:16.04
ARG CONDA_DIR=/opt/conda
ENV PATH $CONDA_DIR/bin:$PATH
RUN apt-get update && \
apt-get install -y --no-install-recommends \
cmake \
...
...
@@ -12,8 +15,8 @@ RUN apt-get update && \
# python-package
# miniconda
wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh && \
/bin/bash Miniconda3-latest-Linux-x86_64.sh -f -b -p
/opt/conda
&& \
export PATH="
/opt/conda
/bin:$PATH" && \
/bin/bash Miniconda3-latest-Linux-x86_64.sh -f -b -p
$CONDA_DIR
&& \
export PATH="
$CONDA_DIR
/bin:$PATH" && \
conda config --set always_yes yes --set changeps1 no && \
# lightgbm
conda install -q -y numpy scipy scikit-learn pandas && \
...
...
@@ -24,5 +27,3 @@ RUN apt-get update && \
apt-get autoremove -y && apt-get clean && \
conda clean -a -y && \
rm -rf /usr/local/src/*
ENV PATH /opt/conda/bin:$PATH
docker/gpu/dockerfile.gpu
View file @
fdb39237
...
...
@@ -69,9 +69,9 @@ ARG CONDA_DIR=/opt/conda
ENV PATH $CONDA_DIR/bin:$PATH
# Install miniconda
RUN echo
'
export PATH=
/opt/conda
/bin:$PATH' > /etc/profile.d/conda.sh && \
RUN echo
"
export PATH=
$CONDA_DIR
/bin:
"'
$PATH' > /etc/profile.d/conda.sh && \
wget --quiet https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O ~/miniconda.sh && \
/bin/bash ~/miniconda.sh -b -p
/opt/conda
&& \
/bin/bash ~/miniconda.sh -b -p
$CONDA_DIR
&& \
rm ~/miniconda.sh
RUN conda config --set always_yes yes --set changeps1 no && \
...
...
@@ -112,8 +112,8 @@ RUN apt-get autoremove -y && apt-get clean && \
# password key: --NotebookApp.password='sha1:98b767162d34:8da1bc3c75a0f29145769edc977375a373407824'
# Add a notebook profile.
RUN mkdir -p -m 700
/root
/.jupyter/ && \
echo "c.NotebookApp.ip = '*'" >>
/root
/.jupyter/jupyter_notebook_config.py
RUN mkdir -p -m 700
~
/.jupyter/ && \
echo "c.NotebookApp.ip = '*'" >>
~
/.jupyter/jupyter_notebook_config.py
VOLUME /home
WORKDIR /home
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment