forked from github-mirror/docker-nixpkgs
abstract CLI image generation
and add busybox in all the images
This commit is contained in:
@@ -1,20 +1,6 @@
|
||||
{ dockerTools
|
||||
, cacert
|
||||
{ buildCLIImage
|
||||
, curl
|
||||
}:
|
||||
dockerTools.buildLayeredImage {
|
||||
inherit (curl) name;
|
||||
|
||||
contents = [
|
||||
cacert
|
||||
curl
|
||||
];
|
||||
|
||||
config = {
|
||||
Entrypoint = [ "/bin/curl" ];
|
||||
Env = [
|
||||
"PATH=/bin"
|
||||
"SSL_CERT_FILE=${cacert}/etc/ssl/certs/ca-bundle.crt"
|
||||
];
|
||||
};
|
||||
buildCLIImage {
|
||||
drv = curl;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user