-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
18 lines (15 loc) · 728 Bytes
/
Copy pathDockerfile
File metadata and controls
18 lines (15 loc) · 728 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# Reproducible environment for K-MEB (SGD / prototorch).
# CPU image; for GPU use a matching nvidia/cuda + torch build instead.
# Pinning policy: original paper-time versions where known, otherwise the newest
# versions verified to run (see repo-cleanup MANIFEST). Currently unpinned.
FROM python:3.10-slim
RUN apt-get update && apt-get install -y --no-install-recommends \
build-essential git \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
RUN pip install --no-cache-dir -e . || true
# docker run --rm -it <image> python examples/KMEB_irisAnomalie.py
CMD ["python", "-c", "import torch, prototorch; print('K-MEB sgd env OK')"]