17 lines
483 B
Nix
17 lines
483 B
Nix
{ dockerTools, my-crate }:
|
|
dockerTools.buildLayeredImage {
|
|
name = my-crate.pname;
|
|
tag = "latest";
|
|
|
|
contents = [ my-crate ];
|
|
|
|
config = {
|
|
Entrypoint = [ ("/bin/" + my-crate.pname) ];
|
|
Labels = {
|
|
"org.opencontainers.image.title" = "Minecraft Ingress";
|
|
"org.opencontainers.image.source" = "https://git.tami.moe/tamipes/mc-ingress";
|
|
"org.opencontainers.image.vendor" = "Tamipes";
|
|
"org.opencontainers.image.version" = my-crate.version;
|
|
};
|
|
};
|
|
}
|