flake rework

This commit is contained in:
Robin Appelman 2024-01-16 22:39:33 +01:00
commit 6010f814e9
8 changed files with 119 additions and 104 deletions

23
docker.nix Normal file
View file

@ -0,0 +1,23 @@
{
dockerTools,
demostf-frontend,
}:
dockerTools.buildLayeredImage {
name = "demostf/frontend";
tag = "latest";
maxLayers = 5;
contents = [
demostf-frontend
dockerTools.caCertificates
];
config = {
Cmd = ["demostf-frontend"];
ExposedPorts = {
"80/tcp" = {};
};
Env = [
"LISTEN_ADDRESS=0.0.0.0"
"LISTEN_PORT=80"
];
};
}