From 20f9c7d7cc73d058b8a5e543bb377c1be4e73ac1 Mon Sep 17 00:00:00 2001 From: bitnik Date: Mon, 9 Apr 2018 11:27:09 +0200 Subject: [PATCH] split post build script command in Docker file `RUN chmod +x postBuild && ./postBuild` causes `./postBuild: Text file busy` error with Docker version 1.13.1 --- repo2docker/buildpacks/base.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/repo2docker/buildpacks/base.py b/repo2docker/buildpacks/base.py index 1599ff8f..9691559f 100644 --- a/repo2docker/buildpacks/base.py +++ b/repo2docker/buildpacks/base.py @@ -109,7 +109,8 @@ USER ${NB_USER} # Make sure that postBuild scripts are marked executable before executing them {% if post_build_scripts -%} {% for s in post_build_scripts -%} -RUN chmod +x {{ s }} && ./{{ s }} +RUN chmod +x {{ s }} +RUN ./{{ s }} {% endfor %} {% endif -%}