default.nix (448B)
1 { dockerTools, quark }: 2 3 dockerTools.buildImage { 4 name = "quark"; 5 tag = quark.version; 6 7 contents = [ 8 dockerTools.fakeNss 9 quark 10 ]; 11 runAsRoot = "mkdir -p /htdocs"; 12 13 config = { 14 Cmd = [ 15 "quark" 16 "-h" 17 "0.0.0.0" 18 "-p" 19 "8080" 20 "-g" 21 "nobody" 22 "-l" 23 ]; 24 WorkingDir = "/htdocs"; 25 Volumes = { 26 "/htdocs" = { }; 27 }; 28 ExposedPorts = { 29 "8080/tcp" = { }; 30 }; 31 }; 32 }