File tree 2 files changed +5
-0
lines changed
2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -28,6 +28,7 @@ export async function build(
28
28
path : string | undefined = "."
29
29
) : Promise < string > {
30
30
const context = await getDirectory ( src ) ;
31
+ const buildx = dag . container ( ) . from ( "docker/buildx-bin" ) . file ( "/buildx" ) ;
31
32
const ctr = dag
32
33
. pipeline ( Job . build )
33
34
. container ( )
@@ -36,6 +37,9 @@ export async function build(
36
37
. withExec ( [ "pkgx" , "install" , "nixpacks" , "docker" ] )
37
38
. withExec ( [ "nixpacks" , "--version" ] )
38
39
. withExec ( [ "docker" , "-v" ] )
40
+ . withExec ( [ "mkdir" , "-p" , "/root/.docker/cli-plugins" ] )
41
+ . withFile ( "/root/.docker/cli-plugins/docker-buildx" , buildx )
42
+ . withExec ( [ "docker" , "buildx" , "version" ] )
39
43
. withDirectory ( "/app" , context )
40
44
. withWorkdir ( "/app" )
41
45
. withServiceBinding ( "dockerd" , docker ( "25.0.3" , true ) )
Original file line number Diff line number Diff line change @@ -26,6 +26,7 @@ export const docker = (version = "24.0", cached = false) => {
26
26
let ctr = dag
27
27
. container ( )
28
28
. from ( `docker:${ version } -dind` )
29
+ . withEnvVariable ( "DOCKER_CLI_EXPERIMENTAL" , "enabled" )
29
30
. withoutEntrypoint ( )
30
31
. withExposedPort ( 2375 ) ;
31
32
You can’t perform that action at this time.
0 commit comments