29 lines
551 B
Nix
29 lines
551 B
Nix
{ 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" = { };
|
|
};
|
|
};
|
|
}
|