Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions cli/src/execDocker/docker.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import Docker from 'dockerode';
import os from 'os';
import { readdir } from 'fs/promises';
import { createSigintAbortSignal } from '../utils/abortController.js';

type ProgressEvent = { stream?: string };
Expand Down Expand Up @@ -28,9 +29,11 @@ export async function dockerBuild({
progressCallback?: (msg: string) => void;
}): Promise<string> {
const osType = os.type();

const contextPath = process.cwd(); // Use current working directory
const buildArgs = {
context: process.cwd(), // Use current working directory
src: ['./'],
context: contextPath,
src: await readdir(contextPath), // Include all files of the context
};

// by default force to build amd64 image which is architecture used in iExec workers
Expand Down