Skip to content

Commit d6e8983

Browse files
committed
2 parents b9ea150 + 7939ac5 commit d6e8983

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/Commands/BuildCommand.php

+7
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@
2222
use Laravel\VaporCli\BuildProcess\RemoveVendorPlatformCheck;
2323
use Laravel\VaporCli\BuildProcess\SetBuildEnvironment;
2424
use Laravel\VaporCli\Helpers;
25+
use Laravel\VaporCli\Manifest;
26+
use Laravel\VaporCli\Path;
2527
use Symfony\Component\Console\Input\InputArgument;
2628
use Symfony\Component\Console\Input\InputOption;
2729

@@ -52,6 +54,11 @@ public function handle()
5254

5355
Helpers::line('Building project...');
5456

57+
if (Manifest::usesContainerImage($this->argument('environment')) &&
58+
! file_exists($file = Path::dockerfile($this->argument('environment')))) {
59+
Helpers::abort("Please create a Dockerfile at [$file].");
60+
}
61+
5562
$startedAt = new DateTime();
5663

5764
collect([

0 commit comments

Comments
 (0)