File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 11import Docker from 'dockerode' ;
22import os from 'os' ;
3+ import { readdir } from 'fs/promises' ;
34import { createSigintAbortSignal } from '../utils/abortController.js' ;
45
56type ProgressEvent = { stream ?: string } ;
@@ -28,9 +29,11 @@ export async function dockerBuild({
2829 progressCallback ?: ( msg : string ) => void ;
2930} ) : Promise < string > {
3031 const osType = os . type ( ) ;
32+
33+ const contextPath = process . cwd ( ) ; // Use current working directory
3134 const buildArgs = {
32- context : process . cwd ( ) , // Use current working directory
33- src : [ './' ] ,
35+ context : contextPath ,
36+ src : await readdir ( contextPath ) , // Include all files of the context
3437 } ;
3538
3639 // by default force to build amd64 image which is architecture used in iExec workers
You can’t perform that action at this time.
0 commit comments