Skip to content

Instantly share code, notes, and snippets.

@marcaurele
Created December 31, 2024 13:45
Show Gist options
  • Save marcaurele/4631553d588f76353ab7376583e8e4bc to your computer and use it in GitHub Desktop.
Save marcaurele/4631553d588f76353ab7376583e8e4bc to your computer and use it in GitHub Desktop.
Dockerfile to build ghostty
FROM debian:testing
ENV ZIG_VERSION="0.13.0"
RUN apt-get update && \
apt-get install --yes --no-install-recommends --no-upgrade libgtk-3-dev libadwaita-1-dev git curl xz-utils ca-certificates
ADD https://ziglang.org/download/$ZIG_VERSION/zig-linux-x86_64-$ZIG_VERSION.tar.xz /
RUN tar -xf zig-linux-x86_64-$ZIG_VERSION.tar.xz && \
ln -s /zig-linux-x86_64-$ZIG_VERSION/zig /usr/local/bin/zig
ADD https://github.com/ghostty-org/ghostty.git /ghostty
WORKDIR /ghostty
CMD ["/usr/local/bin/zig", "build", "-p", "/output", "-Doptimize=ReleaseFast"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment