default.nix (365B)
1 { dockerTools, mbtileserver }: 2 3 dockerTools.buildImage { 4 name = "mbtileserver"; 5 tag = mbtileserver.version; 6 7 contents = [ mbtileserver ]; 8 runAsRoot = "mkdir -p /tilesets"; 9 10 config = { 11 Cmd = [ 12 "mbtileserver" 13 "--enable-reload" 14 ]; 15 Volumes = { 16 "/tilesets" = { }; 17 }; 18 ExposedPorts = { 19 "8000/tcp" = { }; 20 }; 21 }; 22 }