-
-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathDockerfile
25 lines (20 loc) · 894 Bytes
/
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
FROM fedora:41
RUN dnf update -y && \
dnf install -y \
cargo curl git tar xz unzip \
libxkbcommon-devel wayland-devel
RUN dnf install -y \
gcc-c++-14.2.1-3.fc41 \
clang-19.1.0-1.fc41 \
golang-1.23.2-2.fc41 \
rust-1.81.0-6.fc41
RUN curl -L -o odin.zip https://github.com/odin-lang/Odin/releases/download/dev-2025-01/odin-ubuntu-amd64-dev-2025-01.zip && \
unzip odin.zip && rm -f odin.zip && \
tar -xzf dist.tar.gz && rm -rf dist.tar.gz && \
mv odin-linux-amd64-nightly+2025-01-08 /usr/local/odin && \
ln -s /usr/local/odin/odin /usr/local/bin/odin
ADD zig_version.txt .
RUN curl -L https://github.com/marler8997/zigup/releases/download/v2025_01_02/zigup-x86_64-linux.tar.gz | tar xz && \
mv zigup /usr/bin && \
zigup fetch $(cat zig_version.txt) && \
zigup default $(cat zig_version.txt) && rm zig_version.txt