LightGBM/docker/dockerfile-python

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

35 строки
1.0 KiB
Plaintext
Исходник Постоянная ссылка Обычный вид История

FROM ubuntu:20.04
ARG CONDA_DIR=/opt/miniforge
ENV \
DEBIAN_FRONTEND=noninteractive \
LANG=C.UTF-8 \
LC_ALL=C.UTF-8 \
PATH=$CONDA_DIR/bin:$PATH
2019-10-07 15:13:56 +03:00
RUN apt-get update && \
apt-get install -y --no-install-recommends \
ca-certificates \
cmake \
build-essential \
gcc \
g++ \
curl \
git \
libomp-dev && \
# python environment
curl -sL https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-Linux-x86_64.sh -o miniforge.sh && \
/bin/bash miniforge.sh -f -b -p $CONDA_DIR && \
2019-10-07 15:13:56 +03:00
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 && \
git clone --recursive --branch stable --depth 1 https://github.com/Microsoft/LightGBM && \
2023-07-19 21:36:59 +03:00
cd ./LightGBM && \
sh ./build-python.sh install && \
# clean
apt-get autoremove -y && apt-get clean && \
conda clean -a -y && \
rm -rf /usr/local/src/*