File size: 784 Bytes
fd5366a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
# Copyright (c) 2026 CLSA contributors
# SPDX-License-Identifier: MIT
#
# CPU-only image. No GPU, no paid API, no vendor SDK is required for the core.
FROM python:3.11-slim

ENV PYTHONUNBUFFERED=1 \
    PIP_NO_CACHE_DIR=1 \
    CLSA_THREADS=4 \
    HF_HUB_DISABLE_TELEMETRY=1

RUN apt-get update && apt-get install -y --no-install-recommends \
        git make build-essential \
    && rm -rf /var/lib/apt/lists/*

WORKDIR /clsa

COPY requirements.txt ./
RUN pip install --index-url https://download.pytorch.org/whl/cpu torch==2.5.1 \
    && pip install -r requirements.txt

COPY . .

ENV PYTHONPATH=/clsa/src

# Reduced reproduction path: benchmark audit, experiments from cached artefacts,
# and all figures. Full training needs model downloads (~1.6 GB).
CMD ["make", "reproduce"]