mirror of
https://github.com/nix-community/docker-nixpkgs.git
synced 2026-01-12 04:40:42 -05:00
hi
This commit is contained in:
20
curl/default.nix
Normal file
20
curl/default.nix
Normal file
@@ -0,0 +1,20 @@
|
||||
{ dockerTools
|
||||
, cacert
|
||||
, curl
|
||||
}:
|
||||
dockerTools.buildImage {
|
||||
inherit (curl) name;
|
||||
|
||||
contents = [
|
||||
cacert
|
||||
curl
|
||||
];
|
||||
|
||||
config = {
|
||||
Entrypoint = [ "/bin/curl" ];
|
||||
Env = [
|
||||
"PATH=/bin"
|
||||
"SSL_CERT_FILE=${cacert}/etc/ssl/certs/ca-bundle.crt"
|
||||
];
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user