@@ -16,6 +16,8 @@ export enum Job {
16
16
17
17
export const exclude = [ ] ;
18
18
19
+ const DOCKER_VERSION = "25.0.3" ;
20
+
19
21
/**
20
22
* Build an OCI image from your project using nixpacks
21
23
*
@@ -46,7 +48,7 @@ export async function build(
46
48
. withExec ( [ "docker" , "buildx" , "version" ] )
47
49
. withDirectory ( "/app" , context )
48
50
. withWorkdir ( "/app" )
49
- . withServiceBinding ( "dockerd" , docker ( "25.0.3" , true ) )
51
+ . withServiceBinding ( "dockerd" , docker ( DOCKER_VERSION , true ) )
50
52
. withEnvVariable ( "DOCKER_HOST" , "tcp://dockerd:2375" )
51
53
. withExec ( [ "nixpacks" , "build" , path , "--name" , name ] ) ;
52
54
return ctr . stdout ( ) ;
@@ -113,7 +115,7 @@ export async function dev(
113
115
. withExec ( [ "docker" , "buildx" , "version" ] )
114
116
. withDirectory ( "/app" , context )
115
117
. withWorkdir ( "/app" )
116
- . withServiceBinding ( "dockerd" , docker ( "25.0.3" , true ) )
118
+ . withServiceBinding ( "dockerd" , docker ( DOCKER_VERSION , true ) )
117
119
. withEnvVariable ( "DOCKER_HOST" , "tcp://dockerd:2375" )
118
120
. withDefaultTerminalCmd ( [ "bash" , "-i" ] ) ;
119
121
@@ -148,7 +150,7 @@ export async function publish(
148
150
. withMountedCache ( "/root/.pkgx" , dag . cacheVolume ( "pkgx-cache" ) )
149
151
. withExec ( [ "pkgx" , "install" , "docker" ] )
150
152
. withExec ( [ "docker" , "-v" ] )
151
- . withServiceBinding ( "dockerd" , docker ( "25.0.3" , true ) )
153
+ . withServiceBinding ( "dockerd" , docker ( DOCKER_VERSION , true ) )
152
154
. withEnvVariable ( "DOCKER_HOST" , "tcp://dockerd:2375" )
153
155
. withSecretVariable ( "REGISTRY_PASSWORD" , secret ! )
154
156
. withExec ( [
0 commit comments