File size: 1,846 Bytes
3e0dcef
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
# ==========================================
# TEAM BORION / QUANTARION MODELSPACE DOCKERFILE
# Purpose: Cloud deployment for model development, PDFs, LaTeX, Mermaid, LiveFlow
# Author: TEAM GPT
# ==========================================

# --- Base Image: Use official Python 3.12 slim image ---
FROM python:3.12-slim

# --- Metadata ---
LABEL maintainer="team@borion.ai"
LABEL description="Cloud-ready Quantarion ModelSpace environment with PDF, LaTeX, Mermaid, LiveFlow"

# --- Set Environment ---
ENV DEBIAN_FRONTEND=noninteractive \
    PYTHONUNBUFFERED=1 \
    LANG=C.UTF-8 \
    LC_ALL=C.UTF-8 \
    MODELSPACE_HOME=/workspace/quantarion

# --- Create workspace ---
WORKDIR $MODELSPACE_HOME

# --- Install system dependencies ---
RUN apt-get update && apt-get install -y --no-install-recommends \
    build-essential \
    git \
    curl \
    wget \
    unzip \
    cmake \
    pkg-config \
    latexmk \
    texlive-latex-base \
    texlive-latex-extra \
    texlive-fonts-recommended \
    texlive-fonts-extra \
    texlive-bibtex-extra \
    pandoc \
    nodejs \
    npm \
    graphviz \
    python3-dev \
    && apt-get clean \
    && rm -rf /var/lib/apt/lists/*

# --- Install Mermaid CLI globally for diagrams ---
RUN npm install -g @mermaid-js/mermaid-cli

# --- Python dependencies ---
COPY requirements.txt .
RUN pip install --upgrade pip setuptools wheel \
    && pip install -r requirements.txt

# Example requirements.txt content (you can edit)
# torch
# transformers
# pandas
# numpy
# matplotlib
# jupyterlab
# pyyaml
# requests
# fpdf
# seaborn
# pygments
# liveflow-sdk   # hypothetical LiveFlow Python SDK

# --- Optional: Add Quantarion repo ---
# COPY . $MODELSPACE_HOME
# RUN pip install -e .

# --- Expose ports for Jupyter / LiveFlow ---
EXPOSE 8888 3000

# --- Entrypoint for interactive session ---
CMD ["bash"]