pypi.Dockerfile 1.55 KB
Newer Older
1
2
3
4
FROM nvidia/cuda:12.1.0-devel-ubuntu20.04

ENV DEBIAN_FRONTEND=noninteractive \
    TZ=Etc/UTC
5
6
7

RUN set -eux; \
    apt-get update; \
8
9
10
11
    apt-get install -y software-properties-common; \
    add-apt-repository ppa:ubuntu-toolchain-r/test -y; \
    apt-get update; \
    apt-get install -y wget curl libtinfo-dev zlib1g-dev libssl-dev build-essential \
12
                       libedit-dev libxml2-dev git; \
13
14
    curl -O https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh; \
    bash Miniconda3-latest-Linux-x86_64.sh -b -p /miniconda3; \
15
16
17
    rm Miniconda3-latest-Linux-x86_64.sh;

RUN apt-get update && apt-get install -y ninja-build
18
19
20

ENV PATH=/miniconda3/bin/:$PATH

21
# ✅ Accept Anaconda Terms of Service for both required channels
22
RUN conda tos accept --override-channels --channel https://repo.anaconda.com/pkgs/main; \
23
24
25
    conda tos accept --override-channels --channel https://repo.anaconda.com/pkgs/r

# Create environments
26
RUN set -eux; \
27
    conda create -n py38 python=3.8 -y; \
28
29
30
31
    conda create -n py39 python=3.9 -y; \
    conda create -n py310 python=3.10 -y; \
    conda create -n py311 python=3.11 -y; \
    conda create -n py312 python=3.12 -y; \
32
33
34
35
36
    ln -sf /miniconda3/envs/py38/bin/python3.8 /usr/bin/python3.8; \
    ln -sf /miniconda3/envs/py39/bin/python3.9 /usr/bin/python3.9; \
    ln -sf /miniconda3/envs/py310/bin/python3.10 /usr/bin/python3.10; \
    ln -sf /miniconda3/envs/py311/bin/python3.11 /usr/bin/python3.11; \
    ln -sf /miniconda3/envs/py312/bin/python3.12 /usr/bin/python3.12; \
37
38
    conda install -y cmake patchelf

39
WORKDIR /tilelang