Add nginx-receiver

Signed-off-by: Nikolaos Karaolidis <nick@karaolidis.com>
This commit is contained in:
2025-07-26 20:29:06 +01:00
parent 095f1d063a
commit 077ceb3c69
6 changed files with 628 additions and 0 deletions

View File

@@ -0,0 +1,28 @@
{ pkgs, ... }:
let
nginxReceiver = import ./package { inherit pkgs; };
in
pkgs.dockerTools.buildImage {
name = "nginx-receiver";
fromImage = import ../base { inherit pkgs; };
copyToRoot = pkgs.buildEnv {
name = "root";
paths = [ nginxReceiver ];
pathsToLink = [ "/bin" ];
};
config = {
Entrypoint = [ "nginx-receiver" ];
WorkingDir = "/var/www/nginx";
Volumes = {
"/var/www/nginx" = { };
};
Env = [
"TARGET_DIR=/var/www/nginx"
];
ExposedPorts = {
"8080/tcp" = { };
};
};
}