Skip to content

Commit 9cae50a

Browse files
committed
[nixpacks] install ca-certificates
1 parent cb96448 commit 9cae50a

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

nixpacks/src/dagger/jobs.ts

+4
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ export async function build(
3333
.pipeline(Job.build)
3434
.container()
3535
.from("pkgxdev/pkgx:latest")
36+
.withExec(["apt-get", "update"])
37+
.withExec(["apt-get", "install", "-y", "ca-certificates"])
3638
.withMountedCache("/root/.pkgx", dag.cacheVolume("pkgx-cache"))
3739
.withExec(["pkgx", "install", "nixpacks", "docker"])
3840
.withExec(["nixpacks", "--version"])
@@ -99,6 +101,8 @@ export async function dev(
99101
.pipeline(Job.dev)
100102
.container()
101103
.from("pkgxdev/pkgx:latest")
104+
.withExec(["apt-get", "update"])
105+
.withExec(["apt-get", "install", "-y", "ca-certificates"])
102106
.withMountedCache("/root/.pkgx", dag.cacheVolume("pkgx-cache"))
103107
.withExec(["pkgx", "install", "nixpacks", "docker"])
104108
.withExec(["nixpacks", "--version"])

nixpacks/src/dagger/lib.ts

+4
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,10 @@ export const docker = (version = "24.0", cached = false) => {
4040
);
4141
}
4242
return ctr
43+
.withExec(["apk", "update"])
44+
.withExec(["apk", "add", "ca-certificates"])
45+
.withExec(["sh", "-c", "rm -rf /var/cache/apk/*"])
46+
.withExec(["update-ca-certificates"])
4347
.withExec(
4448
[
4549
"dockerd",

0 commit comments

Comments
 (0)