-
Notifications
You must be signed in to change notification settings - Fork 144
Expand file tree
/
Copy pathDockerfile
More file actions
67 lines (58 loc) · 1.98 KB
/
Dockerfile
File metadata and controls
67 lines (58 loc) · 1.98 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
FROM nvidia/cuda:13.2.0-cudnn-devel-ubuntu24.04
ENV DEBIAN_FRONTEND=noninteractive \
PIP_BREAK_SYSTEM_PACKAGES=1 \
PIP_DISABLE_PIP_VERSION_CHECK=1 \
PYTHONDONTWRITEBYTECODE=1 \
PYTHONUNBUFFERED=1 \
WORKSPACE_DIR=/workspace/helion
RUN apt-get update && \
apt-get install -y --no-install-recommends \
bash \
build-essential \
ca-certificates \
curl \
git \
libgomp1 \
openssh-server \
pkg-config \
python-is-python3 \
python3 \
python3-dev \
python3-pip \
python3-venv \
rsync && \
ln -sf /usr/bin/pip3 /usr/local/bin/pip && \
mkdir -p /root/.ssh /var/run/sshd && \
chmod 700 /root/.ssh && \
sed -i 's/^#*PermitRootLogin .*/PermitRootLogin prohibit-password/' /etc/ssh/sshd_config && \
sed -i 's/^#*PasswordAuthentication .*/PasswordAuthentication no/' /etc/ssh/sshd_config && \
sed -i 's/^#*PubkeyAuthentication .*/PubkeyAuthentication yes/' /etc/ssh/sshd_config && \
printf '\nClientAliveInterval 120\nClientAliveCountMax 3\n' >> /etc/ssh/sshd_config && \
rm -rf /var/lib/apt/lists/*
WORKDIR ${WORKSPACE_DIR}
COPY scripts/docker_entrypoint.sh /usr/local/bin/docker-entrypoint.sh
RUN chmod +x /usr/local/bin/docker-entrypoint.sh
COPY . ${WORKSPACE_DIR}
RUN mkdir -p /workspace/pytorch
RUN python -m pip install \
--pre \
--index-url https://download.pytorch.org/whl/nightly/cu130 \
--extra-index-url https://pypi.org/simple \
torch \
triton && \
SETUPTOOLS_SCM_PRETEND_VERSION_FOR_HELION=0.0+docker \
python -m pip install \
-e '.[dev,cute-cu13]' \
absl-py \
jax \
packaging \
pyrefly==0.51.1 \
ruff==0.15.0 && \
if [ -d .git ]; then \
pre-commit install-hooks; \
else \
echo "Skipping pre-commit hook bootstrap: no .git in build context"; \
fi
EXPOSE 22
ENTRYPOINT ["/usr/local/bin/docker-entrypoint.sh"]
CMD ["sleep", "infinity"]