qlib Docker & Self-Hosted Deployment

GitHub

Qlib is an AI-oriented Quant investment platform that aims to use AI tech to empower Quant Research, from exploring ideas to implementing productions.

1. Pull Image (DOCKERHUB) docker pull microsoft/qlib:latest
2. Docker Run (1-Click Launch) docker run -d --name qlib --restart always microsoft/qlib:latest
3. Podman Run podman run -d --name qlib --restart always microsoft/qlib:latest
4. Skopeo Inspect (Zero-Pull Manifest) skopeo inspect docker://docker.io/microsoft/qlib:latest
5. ORAS Pull (OCI Artifact) oras pull microsoft/qlib:latest
Dockerfile
FROM continuumio/miniconda3:latest

WORKDIR /qlib

COPY . .

RUN apt-get update && \
    apt-get install -y build-essential

RUN conda create --name qlib_env python=3.8 -y
RUN echo "conda activate qlib_env" >> ~/.bashrc
ENV PATH /opt/conda/envs/qlib_env/bin:$PATH

RUN python -m pip install --upgrade pip

RUN python -m pip install numpy==1.23.5
RUN python -m pip install pandas==1.5.3
RUN python -m pip install importlib-metadata==5.2.0
RUN python -m pip install "cloudpickle<3"
RUN python -m pip install scikit-learn==1.3.2

RUN python -m pip install cython packaging tables matplotlib statsmodels
RUN python -m pip install pybind11 cvxpy

ARG IS_STABLE="yes"

RUN if [ "$IS_STABLE" = "yes" ]; then \
        python -m pip install pyqlib; \
    else \
        python setup.py install; \
    fi