-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
39 lines (33 loc) · 1.08 KB
/
Dockerfile
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
FROM ghcr.io/dojoengine/dojo-dev:v1.2.2
# Install Katana's Rust version
ARG RUST_VERSION=1.83.0
RUN rustup toolchain install ${RUST_VERSION} --profile minimal && \
rustup default ${RUST_VERSION}
# Set environment variables for LLVM
ENV MLIR_SYS_190_PREFIX=/usr/lib/llvm-19
ENV LLVM_SYS_191_PREFIX=/usr/lib/llvm-19
ENV TABLEGEN_190_PREFIX=/usr/lib/llvm-19
# Install LLVM and Cairo native dependencies
RUN apt-get install -y \
g++ \
llvm-19 \
llvm-19-dev \
llvm-19-runtime \
clang-19 \
clang-tools-19 \
lld-19 \
libpolly-19-dev \
libmlir-19-dev \
mlir-19-tools
# Install bun for Explorer
RUN apt-get install -y unzip
RUN curl -fsSL https://bun.sh/install | bash
ENV PYENV_ROOT="/root/.pyenv"
ENV PATH="/root/.pyenv/bin:$PATH"
RUN curl -fsSL https://pyenv.run | bash
RUN echo 'export PYENV_ROOT="/root/.pyenv"' >> /root/.bashrc && \
echo 'export PATH="$PYENV_ROOT/bin:$PATH"' >> /root/.bashrc && \
echo 'eval "$(pyenv init -)"' >> /root/.bashrc && \
echo 'eval "$(pyenv virtualenv-init -)"' >> /root/.bashrc
# Add shims to PATH for non-login shell usage
ENV PATH="/root/.pyenv/shims:$PATH"