Skip to content

Commit 796408d

Browse files
author
Mark Saroufim
committed
Use actions-runner base image for Helion Docker image
Switch from nvidia/cuda base to ghcr.io/actions/actions-runner:latest so the image includes the GitHub Actions runner agent, matching the AMD runner pattern. Install CUDA 13.1 toolkit from NVIDIA apt repos and add sudo to all install commands for the runner user.
1 parent b056078 commit 796408d

1 file changed

Lines changed: 32 additions & 13 deletions

File tree

docker/helion.Dockerfile

Lines changed: 32 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,63 @@
1-
FROM nvidia/cuda:13.1.0-devel-ubuntu24.04
1+
FROM ghcr.io/actions/actions-runner:latest
2+
3+
# Install CUDA 13.1 toolkit
4+
RUN sudo apt-get update && sudo apt-get install -y --no-install-recommends \
5+
ca-certificates \
6+
curl \
7+
wget \
8+
gnupg \
9+
&& sudo rm -rf /var/lib/apt/lists/* \
10+
&& wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2404/x86_64/cuda-keyring_1.1-1_all.deb \
11+
&& sudo dpkg -i cuda-keyring_1.1-1_all.deb \
12+
&& rm cuda-keyring_1.1-1_all.deb \
13+
&& sudo apt-get update \
14+
&& sudo apt-get install -y --no-install-recommends \
15+
cuda-toolkit-13-1 \
16+
&& sudo rm -rf /var/lib/apt/lists/*
17+
18+
ENV PATH="/usr/local/cuda-13.1/bin:${PATH}"
19+
ENV LD_LIBRARY_PATH="/usr/local/cuda-13.1/lib64:${LD_LIBRARY_PATH}"
220

321
# Install Python 3.13
4-
RUN apt-get update && apt-get install -y --no-install-recommends \
22+
RUN sudo apt-get update && sudo apt-get install -y --no-install-recommends \
523
software-properties-common \
6-
&& add-apt-repository ppa:deadsnakes/ppa \
7-
&& apt-get update && apt-get install -y --no-install-recommends \
24+
&& sudo add-apt-repository ppa:deadsnakes/ppa \
25+
&& sudo apt-get update && sudo apt-get install -y --no-install-recommends \
826
python3.13 \
927
python3.13-venv \
1028
python3.13-dev \
1129
git \
1230
gcc-13 \
1331
g++-13 \
14-
&& rm -rf /var/lib/apt/lists/*
32+
&& sudo rm -rf /var/lib/apt/lists/*
1533

16-
RUN ln -sf /usr/bin/python3.13 /usr/local/bin/python3 \
17-
&& ln -sf /usr/bin/python3.13 /usr/local/bin/python
34+
RUN sudo ln -sf /usr/bin/python3.13 /usr/local/bin/python3 \
35+
&& sudo ln -sf /usr/bin/python3.13 /usr/local/bin/python
1836

1937
# Install pip and uv
2038
RUN python3 -m ensurepip --upgrade \
2139
&& python3 -m pip install --no-cache-dir uv
2240

2341
# Core build tools
24-
RUN uv pip install --system \
42+
RUN sudo uv pip install --system \
2543
ninja~=1.11 \
2644
wheel~=0.45 \
2745
packaging~=25.0 \
2846
numpy~=2.3
2947

3048
# PyTorch (CUDA 13.0 wheels)
31-
RUN uv pip install --system \
32-
torch==2.10.0
49+
RUN sudo uv pip install --system \
50+
torch==2.10.0 \
51+
--index-url https://download.pytorch.org/whl/cu130
3352

3453
# Helion
35-
RUN uv pip install --system helion
54+
RUN sudo uv pip install --system helion
3655

3756
# # tinygrad
38-
# RUN uv pip install --system tinygrad~=0.10
57+
# RUN sudo uv pip install --system tinygrad~=0.10
3958

4059
# # NVIDIA CUDA packages
41-
# RUN uv pip install --system \
60+
# RUN sudo uv pip install --system \
4261
# nvidia-cupynumeric~=25.3 \
4362
# nvidia-cutlass-dsl==4.3.5 \
4463
# "cuda-core[cu13]" \

0 commit comments

Comments
 (0)