Unverified Commit fdb39237 authored by Nikita Titov's avatar Nikita Titov Committed by GitHub
Browse files

updated dockers (#2459)

parent d7f8aa53
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
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment