Skip to content

Commit 7f0cac8

Browse files
committed
print Dockerfile to stdout when --no-build
Removes need to also specify `--debug` to see the dockerfile, which goes to the logs
1 parent 8ef5faa commit 7f0cac8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

repo2docker/app.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -686,7 +686,9 @@ def build(self):
686686

687687
self.log.debug(picked_buildpack.render(), extra=dict(phase="building"))
688688

689-
if not self.dry_run:
689+
if self.dry_run:
690+
print(picked_buildpack.render())
691+
else:
690692
if self.user_id == 0:
691693
raise ValueError(
692694
"Root as the primary user in the image is not permitted."

0 commit comments

Comments
 (0)