Created
          December 31, 2024 13:45 
        
      - 
      
- 
        Save marcaurele/4631553d588f76353ab7376583e8e4bc to your computer and use it in GitHub Desktop. 
    Dockerfile to build ghostty
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | 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