aboutsummaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
authorArslaan Pathan <[email protected]>2026-08-29 22:36:50 +1200
committerArslaan Pathan <[email protected]>2026-08-29 22:36:50 +1200
commit0b689ca7abccb7edaa8940b0beb496d33150d5b7 (patch)
treedc8d0a7a278acdb22c55118cbf083b4f391febd3 /Dockerfile
parentdb18826352c84c410efcb1ba9bc25ee9668bc9cc (diff)
downloadyerbalinux-0b689ca7abccb7edaa8940b0beb496d33150d5b7.tar.xz
yerbalinux-0b689ca7abccb7edaa8940b0beb496d33150d5b7.zip
Change Linux URL and add Docker build because my host is now musl
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile21
1 files changed, 21 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 0000000..89b480e
--- /dev/null
+++ b/Dockerfile
@@ -0,0 +1,21 @@
+FROM ubuntu:22.04
+
+ENV DEBIAN_FRONTEND=noninteractive
+RUN apt-get update && apt-get install -y locales wget unzip git curl python3 python3-pip sudo chrpath diffstat lz4 zstd libtirpc-dev rpcsvc-proto file xz-utils bzip2 cpio gawk g++ make gcc build-essential patch texinfo clang tcc && locale-gen en_US.UTF-8 && update-locale LANG=en_US.UTF-8 && rm -rf /var/lib/apt/lists/*
+
+ENV LANG=en_US.UTF-8 \
+ LANGUAGE=en_US:en \
+ LC_ALL=en_US.UTF-8
+
+RUN pip3 install kas
+
+RUN groupadd -g 1000 builder && useradd -u 1000 -g 1000 -m -s /bin/bash builder && echo "builder ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers
+
+USER 1000:1000
+WORKDIR /home/builder/yerbalinux
+
+ENV LANG=en_US.UTF-8 \
+ LANGUAGE=en_US:en \
+ LC_ALL=en_US.UTF-8
+
+CMD ["kas", "build", "kas.yml"]