diff --git a/src/Adapter/Docker/Satellite.php b/src/Adapter/Docker/Satellite.php index e93019b9..1080f0ff 100644 --- a/src/Adapter/Docker/Satellite.php +++ b/src/Adapter/Docker/Satellite.php @@ -77,7 +77,10 @@ public function build( $this->workdir, ); + $process->start(); + $input = new ReadableResourceStream($archive->asResource()); + $input->pipe($process->stdin); $this->execute($logger, $process); @@ -105,7 +108,6 @@ private function execute( $deferred->resolve(); }); - $process->start(); $logger->notice(sprintf('Starting process "%s".', $process->getCommand())); await(timeout($deferred->promise(), $timeout));