You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
415 B
Nix
24 lines
415 B
Nix
3 years ago
|
{ 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" ];
|
||
|
};
|
||
|
}
|