mirror of
https://github.com/TECHNOFAB11/kubenix.git
synced 2025-12-12 16:10:05 +01:00
19 lines
365 B
Nix
19 lines
365 B
Nix
|
|
{ dockerTools, nginx }:
|
||
|
|
|
||
|
|
dockerTools.buildLayeredImage {
|
||
|
|
name = "nginx";
|
||
|
|
contents = [ nginx ];
|
||
|
|
extraCommands = ''
|
||
|
|
mkdir etc
|
||
|
|
chmod u+w etc
|
||
|
|
echo "nginx:x:1000:1000::/:" > etc/passwd
|
||
|
|
echo "nginx:x:1000:nginx" > etc/group
|
||
|
|
'';
|
||
|
|
config = {
|
||
|
|
Cmd = ["nginx" "-c" "/etc/nginx/nginx.conf"];
|
||
|
|
ExposedPorts = {
|
||
|
|
"80/tcp" = {};
|
||
|
|
};
|
||
|
|
};
|
||
|
|
}
|