mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 17:46:28 +08:00
install: nix examples (draft)
This commit is contained in:
1 parent
c2d5696919
commit
91a7ebb23d
4 files changed
+75
-29
No files matched your search
@@ -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" ];
|
||||
};
|
||||
}
|
||||
Reference in new issue
Block a user