default.nix (417B)
1 { dockerTools, elevation_server }: 2 3 dockerTools.buildImage { 4 name = "elevation_server"; 5 tag = elevation_server.version; 6 7 contents = [ elevation_server ]; 8 runAsRoot = "mkdir -p /dem"; 9 10 config = { 11 Cmd = [ 12 "elevation_server" 13 "-dem" 14 "/dem/dem_tiles" 15 "-host" 16 "0.0.0.0" 17 ]; 18 Volumes = { 19 "/dem" = { }; 20 }; 21 ExposedPorts = { 22 "8080/tcp" = { }; 23 }; 24 }; 25 }