mirror of
https://github.com/nix-community/docker-nixpkgs.git
synced 2026-01-11 20:30:37 -05:00
21 lines
321 B
Nix
21 lines
321 B
Nix
{ dockerTools
|
|
, cacert
|
|
, docker-compose
|
|
}:
|
|
dockerTools.buildLayeredImage {
|
|
inherit (docker-compose) name;
|
|
|
|
contents = [
|
|
cacert
|
|
docker-compose
|
|
];
|
|
|
|
config = {
|
|
Entrypoint = [ "/bin/docker-compose" ];
|
|
Env = [
|
|
"PATH=/bin"
|
|
"SSL_CERT_FILE=${cacert}/etc/ssl/certs/ca-bundle.crt"
|
|
];
|
|
};
|
|
}
|