feat: reduces docker image size
Some checks failed
release-please / release-please (push) Failing after 29s
Test build / nix-check (push) Successful in 3m3s

This commit is contained in:
2025-03-21 23:43:23 -05:00
parent ef34362a98
commit 6c9ff4335d
4 changed files with 24 additions and 3 deletions

View File

@@ -15,7 +15,7 @@ jobs:
# this assumes that you have created a personal access token
# (PAT) and configured it as a GitHub action secret named
# `MY_RELEASE_PLEASE_TOKEN` (this secret name is not important).
# token: ${{ secrets.MY_RELEASE_PLEASE_TOKEN }}
token: ${{ secrets.MY_RELEASE_PLEASE_TOKEN }}
# this is a built-in strategy in release-please, see "Action Inputs"
# for more options
release-type: simple

2
.nvim.lua Normal file
View File

@@ -0,0 +1,2 @@
vim.opt.tabstop = 2;
vim.opt.expandtab = true;

View File

@@ -13,11 +13,28 @@
pkgsFor =
system:
nixpkgs.legacyPackages.${system}.extend (
nixpkgs.lib.composeManyExtensions ([ ])
nixpkgs.lib.composeManyExtensions ([ dockerOverlay ])
# nixpkgs.lib.composeManyExtensions ([ ] ++ builtins.attrValues self.overlays)
);
eachSystem = f: nixpkgs.lib.genAttrs supportedSystems (system: f (pkgsFor system));
dockerOverlay = _final: prev: {
scripts = prev.callPackage ./scripts { };
# gitMinimal still ships with perl and python
gitReallyMinimal =
(prev.git.override {
perlSupport = false;
pythonSupport = false;
withManual = false;
withpcre2 = false;
}).overrideAttrs
(_: {
# installCheck is broken when perl is disabled
doInstallCheck = false;
});
};
treefmtEval = eachSystem (pkgs: inputs.treefmt-nix.lib.evalModule pkgs ./treefmt.nix);
in
{
@@ -41,7 +58,7 @@
pkgs.nix
pkgs.cacert
pkgs.curl
pkgs.git
pkgs.gitReallyMinimal
pkgs.gnutar
pkgs.gzip
pkgs.gnused

2
scripts/deploy.sh Normal file
View File

@@ -0,0 +1,2 @@
#!/usr/bin/env bash
set -Eeuo pipefail