-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathContainerfile
More file actions
33 lines (24 loc) · 1.1 KB
/
Copy pathContainerfile
File metadata and controls
33 lines (24 loc) · 1.1 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
# Octonion Computation Substrate - Development Container
# ROCm + PyTorch environment for octonionic ML research
#
# Build: docker compose build
# Run: docker compose run --rm dev bash
FROM rocm/pytorch:rocm7.2_ubuntu24.04_py3.12_pytorch_release_2.9.1
LABEL maintainer="aescalera"
LABEL description="Development container for octonionic computation substrate with ROCm GPU support"
LABEL rocm.version="7.2"
LABEL pytorch.version="2.9.1"
# Install uv for fast Python dependency management
RUN curl -LsSf https://astral.sh/uv/install.sh | sh
# Ensure uv is on PATH
ENV PATH="/root/.local/bin:${PATH}"
# uv requires copy mode inside containers with mounted volumes
ENV UV_LINK_MODE=copy
# Make ROCm PyTorch (installed in /opt/venv/) visible to project venvs.
# uv creates .venv/ which can't see /opt/venv/lib/python3.12/site-packages/.
# PYTHONPATH ensures all Python processes (including uv run) find the ROCm torch.
ENV PYTHONPATH="/opt/venv/lib/python3.12/site-packages"
WORKDIR /workspace
# Project source is mounted via docker-compose, not copied
# Dependencies are installed at runtime via `uv sync`
CMD ["bash"]