diff --git a/bin/compile b/bin/compile index 56335c8..43e0037 100755 --- a/bin/compile +++ b/bin/compile @@ -92,7 +92,10 @@ if [[ ! "$DOCKER_BUILD" ]]; then # Copy Application code in. bpwatch start appdir_stage - deep-cp $BUILD_DIR $APP_DIR + # Skip copying the code if we're already in the right spot. + if [[ $BUILD_DIR != "/app" ]]; then + deep-cp $BUILD_DIR $APP_DIR + fi bpwatch stop appdir_stage fi