build: add Arch Linux development container
kitty only builds on Linux and macOS, so a Windows host cannot build it natively. Provide an image with the dependencies from docs/build.rst to build and run the project against the distribution it targets.
This commit is contained in:
1 file changed
+32
@@ -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"]
|
||||
Reference in new issue
Block a user