refactor
This commit is contained in:
parent
0e6a1e8646
commit
84fc2c2b34
1 changed files with 22 additions and 25 deletions
47
flake.nix
47
flake.nix
|
@ -24,33 +24,30 @@
|
||||||
mdbook
|
mdbook
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
packages.dockerImage = let
|
packages.image = dockerTools.buildImage {
|
||||||
book = callPackage ./default.nix {};
|
name = "wiki.adtya.xyz";
|
||||||
in
|
tag = "latest";
|
||||||
dockerTools.buildImage {
|
fromImage = dockerTools.pullImage {
|
||||||
name = "wiki.adtya.xyz";
|
imageName = "nginx";
|
||||||
tag = "latest";
|
imageDigest =
|
||||||
fromImage = dockerTools.pullImage {
|
if stdenv.isAarch64
|
||||||
imageName = "nginx";
|
then "sha256:93e4bc3b0434bb3b6a7c0bb354aa78be9c23eb7d1853e329dde765e37f809d50"
|
||||||
imageDigest =
|
else "sha256:785ed82af07602663e62d36f462b1f9a212f0587de8737189fff9f258801d7c0";
|
||||||
if stdenv.isAarch64
|
sha256 =
|
||||||
then "sha256:9956d05e8f945ae928901c985936953e93eeb20f1b612b9851f8a5b02ba07b19"
|
if stdenv.isAarch64
|
||||||
else "sha256:da86ecb516d88a5b0579cec8687a75f974712cb5091560c06ef6c393ea4936ee";
|
then "sha256-tFnQPV1SFU0sm2A+rV7xL9UAy7L2zbCzc/09Gu/BILU="
|
||||||
sha256 =
|
else "sha256-J7lQrYyBtqim54u1mAGgw6cve1AJlvew4tg4jjMjkWg=";
|
||||||
if stdenv.isAarch64
|
finalImageName = "nginx";
|
||||||
then "1mpy68r0vqkyb8ls2p8msarhsljjkv3pwvl23wbhipygjv1gmqa4"
|
finalImageTag = "stable-alpine-slim";
|
||||||
else "003cpzhjn5myy7myw79gzy9x1mzb2h9b4q1jwwzlhhjv08db9bal";
|
};
|
||||||
finalImageName = "nginx";
|
copyToRoot = callPackage ./default.nix {};
|
||||||
finalImageTag = "alpine-slim";
|
config = {
|
||||||
};
|
Cmd = ["nginx" "-g" "daemon off;"];
|
||||||
copyToRoot = book;
|
ExposedPort = {
|
||||||
config = {
|
"80/tcp" = {};
|
||||||
Cmd = ["nginx" "-g" "daemon off;"];
|
|
||||||
ExposedPort = {
|
|
||||||
"80/tcp" = {};
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue