diff --git a/flake.nix b/flake.nix index 904e70a..4f2e183 100644 --- a/flake.nix +++ b/flake.nix @@ -34,9 +34,8 @@ protoc-gen-go watchexec ]; - in - { - packages.default = pkgs.buildGo123Module { + + envoy-oidc-authserver = pkgs.buildGo123Module { pname = "envoy-oidc-authserver"; version = "main"; src = ./.; @@ -54,6 +53,20 @@ ''; }; + container = pkgs.dockerTools.buildImage { + name = "envoy-oidc-authserver"; + tag = "main"; + created = "now"; + contents = envoy-oidc-authserver; + config.Cmd = [ "${envoy-oidc-authserver}/bin/envoy-oidc-authserver}" ]; + }; + in + { + packages = { + default = envoy-oidc-authserver; + container = container; + }; + devShells = { default = pkgs.mkShell { LOCALE_ARCHIVE = "${pkgs.glibcLocales}/lib/locale/locale-archive";