we don't need a docker container
parent
97b288c98e
commit
c91ed24ef4
12
default.nix
12
default.nix
|
@ -26,16 +26,4 @@ in rec {
|
|||
elm make --optimize --output $out/share/datalog/index.html src/Main.elm
|
||||
'';
|
||||
};
|
||||
|
||||
container = let
|
||||
linuxPkgs = import sources.nixpkgs { system = "x86_64-linux"; };
|
||||
listenPort = "80";
|
||||
in linuxPkgs.dockerTools.buildLayeredImage {
|
||||
name = "datalog";
|
||||
contents = linuxPkgs.darkhttpd;
|
||||
config = {
|
||||
Cmd = [ "darkhttpd" "${datalog}/share/datalog" ];
|
||||
ExposedPorts = { "${listenPort}/tcp" = { }; };
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Reference in New Issue