diff --git a/Dockerfile b/Dockerfile index cab2010..b265ede 100644 --- a/Dockerfile +++ b/Dockerfile @@ -41,11 +41,10 @@ CMD ["bash", "boot.sh"] # This stuff only runs when building an image from the template ONBUILD RUN rm -Rf /app/scripts ONBUILD ADD . /app/ -ONBUILD RUN /usr/src/app/build-production.sh - ONBUILD RUN if [ -f /app/on-build.sh ]; \ then \ echo "Running custom on-build.sh of child" \ && chmod +x /app/on-build.sh \ && /bin/bash /app/on-build.sh ;\ fi +ONBUILD RUN /usr/src/app/build-production.sh