Don't print appendix on each run for legacy dockerfile
@@ -55,6 +55,7 @@ class DockerBuildPack(BuildPack):
class LegacyBinderDockerBuildPack(DockerBuildPack):
name = Unicode('Legacy Binder Dockerfile')
+
dockerfile_appendix = Unicode(dedent(r"""
USER root
COPY . /home/main/notebooks
@@ -88,7 +89,6 @@ class LegacyBinderDockerBuildPack(DockerBuildPack):
return False
def amend_dockerfile(self, dockerfile):
- print(self.dockerfile_appendix)
with open(dockerfile, 'a') as f:
f.write(self.dockerfile_appendix)
