install: nix examples (draft)

This commit is contained in:
undefined committed 2022-03-18 01:12:58 +08:00
1 parent c2d5696919
commit 91a7ebb23d
4 files changed
+75 -29

No files matched your search

+24
View File
@@ -0,0 +1,24 @@
{ pkgs ? import <nixpkgs> { system = "x86_64-linux"; } }:
let
mongo = pkgs.callPackage ./mongo.nix {};
in pkgs.dockerTools.buildImage {
name = "hydrooj/web-base";
tag = "latest";
contents = [
mongo
pkgs.minio
pkgs.nodejs
pkgs.yarn
];
config = {
WorkingDir = "/data";
Volumes = { "/data" = { }; };
ExposedPorts = {
"8888" = { };
};
Cmd = [ "hydrooj" ];
};
}