A quick HTTP fileserver
go
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

21 lines
444 B

{ system ? builtins.currentSystem }:
let
pkgs = import <nixpkgs> { };
callPackage = pkgs.lib.callPackageWith pkgs;
quickserv = callPackage ./default.nix { };
dockerImage = pkg:
pkgs.dockerTools.buildLayeredImage {
name = "xena/quickserv";
tag = "${quickserv.version}";
contents = [ pkg ];
config = {
Cmd = [ "/bin/quickserv" ];
WorkingDir = "/";
};
};
in dockerImage quickserv