-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathDockerfile.charms
More file actions
34 lines (26 loc) · 975 Bytes
/
Copy pathDockerfile.charms
File metadata and controls
34 lines (26 loc) · 975 Bytes
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
FROM ghcr.io/livebook-dev/livebook:0.19.8
RUN apt-get upgrade -y \
&& apt-get update \
&& apt-get install --no-install-recommends -y \
ninja-build \
python3-pip \
python3.12-venv \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
# LLVM
COPY llvm-requirements.txt .
RUN python3 -m venv --system-site-packages --clear --prompt 'charms' \
--upgrade-deps $(pwd)/.venv \
&& . .venv/bin/activate \
&& pip install --upgrade pip \
&& pip install -r llvm-requirements.txt
ENV LLVM_CONFIG_PATH=/usr/local/lib/python3.10/dist-packages/mlir/bin/llvm-config
# Zig
RUN wget "https://ziglang.org/download/0.13.0/zig-linux-aarch64-0.13.0.tar.xz" -O "zig-linux.tar.xz" \
&& tar Jxvf "zig-linux.tar.xz" -C /usr/local \
&& mv /usr/local/zig-linux-aarch64-0.13.0 /usr/local/zig-linux \
&& rm "zig-linux.tar.xz"
ENV PATH=/usr/local/zig-linux:${PATH}
ENV LIVEBOOK_HOME=/home/livebook
COPY ./livebooks /home/livebook
CMD ["/app/bin/livebook", "start"]