diff --git a/Dockerfile.arch b/Dockerfile.arch new file mode 100644 index 0000000..845dcb6 --- /dev/null +++ b/Dockerfile.arch @@ -0,0 +1,32 @@ +# Arch Linux development environment for kitty. +# +# kitty only builds on Linux and macOS (./dev.sh refuses to download the +# prebuilt dependency bundle elsewhere), so Windows hosts build and run it +# through this container instead of natively. +# +# The package list mirrors docs/build.rst: the build-time requirements plus +# the X11/Wayland/DBus libraries, installed on the distribution kitty is +# meant to run on. +FROM archlinux:base + +RUN pacman -Syu --noconfirm --needed \ + base-devel \ + git go python \ + harfbuzz zlib libpng lcms2 xxhash openssl shader-slang \ + pixman cairo freetype2 fontconfig libcanberra systemd-libs \ + simde \ + libx11 libxcb libxrandr libxinerama libxcursor libxi libxrender \ + xorgproto libxkbcommon libxkbcommon-x11 mesa dbus \ + wayland wayland-protocols wayland-utils \ + tar xz rsync which file \ + && pacman -Scc --noconfirm + +# Keep the Go caches inside the image layer so rebuilds are not slowed down by +# the bind-mounted source directory. +ENV GOCACHE=/root/.cache/go-build \ + GOPATH=/root/go \ + GOTOOLCHAIN=local + +WORKDIR /src + +CMD ["/bin/bash"]