Skip to content

Commit

Permalink
nix: add container image
Browse files Browse the repository at this point in the history
  • Loading branch information
dln committed Oct 1, 2024
1 parent fa1b633 commit 8e29762
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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 = ./.;
Expand All @@ -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";
Expand Down

0 comments on commit 8e29762

Please sign in to comment.