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.
33 lines
681 B
Nix
33 lines
681 B
Nix
{ pkgs ? import <nixpkgs> { system = "x86_64-linux"; } }:
|
|
|
|
let
|
|
hydro = import (pkgs.fetchFromGitHub {
|
|
owner = "hydro-dev";
|
|
repo = "nix-channel";
|
|
rev = "master";
|
|
sha256 = "sha256-EqPU9n4H3EteJqFFv6Seeo9DZxFc3Mdu8Y1y/fjZJ80=";
|
|
}) {};
|
|
in pkgs.dockerTools.buildImage {
|
|
name = "hydrooj/web-base";
|
|
tag = "latest";
|
|
|
|
copyToRoot = pkgs.buildEnv {
|
|
name = "hydro-web";
|
|
paths = [
|
|
hydro.mongodb4
|
|
pkgs.nodejs
|
|
pkgs.yarn
|
|
];
|
|
ignoreCollisions = true;
|
|
pathsToLink = [ "/bin" ];
|
|
};
|
|
|
|
config = {
|
|
WorkingDir = "/data";
|
|
Volumes = { "/data" = { }; };
|
|
ExposedPorts = {
|
|
"8888" = { };
|
|
};
|
|
Cmd = [ "hydrooj" ];
|
|
};
|
|
} |