-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdockerfile
More file actions
71 lines (64 loc) · 2.3 KB
/
Copy pathdockerfile
File metadata and controls
71 lines (64 loc) · 2.3 KB
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
# =============================================================================
# Dockerfile
# Environment for sana-fe / lasana-plugins computer2026 experiments.
# Suitable for upload as a CodeOcean capsule.
# =============================================================================
FROM ubuntu:22.04
# Prevent interactive prompts during package installation
ENV DEBIAN_FRONTEND=noninteractive
# ---------------------------------------------------------------------------
# System dependencies
# ---------------------------------------------------------------------------
RUN apt-get update && apt-get install -y --no-install-recommends \
# Build tools
build-essential \
ttf-mscorefonts-installer \
g++ \
git \
cmake \
ninja-build \
# Python
python3 \
python3-pip \
python3-dev \
# pybind11 build dependency
pybind11-dev \
# Utilities
ca-certificates \
wget \
&& rm -rf /var/lib/apt/lists/*
# ---------------------------------------------------------------------------
# Python packages
# ---------------------------------------------------------------------------
RUN pip3 install --no-cache-dir \
pybind11 \
# Core scientific stack
numpy \
pandas \
matplotlib \
pyyaml \
# PyTorch (CPU build; swap index URL for a CUDA build if needed)
torch \
torchvision \
# Neuromorphic datasets
tonic \
# Serialisation
dill \
# ONNX
onnx \
onnxruntime
# ---------------------------------------------------------------------------
# Working directory
# ---------------------------------------------------------------------------
WORKDIR /code
# ---------------------------------------------------------------------------
# Copy repository contents — includes data/ with all binary assets
# (PyTorch models, SNN files, libloihi_synapse.so, etc.)
# Use .dockerignore to exclude build artefacts and results/ output.
# ---------------------------------------------------------------------------
COPY . .
# ---------------------------------------------------------------------------
# Default command — runs the top-level build and experiment script.
# CodeOcean will invoke this when the capsule is reproduced.
# ---------------------------------------------------------------------------
CMD ["bash", "build_and_run.sh"]