Skip to content
This repository has been archived by the owner on Nov 19, 2024. It is now read-only.

Commit

Permalink
added unshallowing the repository if necessary to support docker hub …
Browse files Browse the repository at this point in the history
…builds
  • Loading branch information
Sven Speckmaier committed Nov 27, 2017
1 parent 2179acd commit 8c6ae7d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,10 @@ COPY [".", "/opt/rancherize-package"]
WORKDIR /opt/rancherize

# install composer packages
RUN curl -sSL "https://gist.githubusercontent.com/justb81/1006b89e41e41e1c848fe91969af7a0b/raw/c12faf968e659356ec1cb53f313e7f8383836be3/getcomposer.sh" | sh \
RUN cd /opt/rancherize-package \
&& (git fetch --unshallow origin || echo "Not a shallow repository, continuing without fetch") \
&& cd /opt/rancherize \
&& curl -sSL "https://gist.githubusercontent.com/justb81/1006b89e41e41e1c848fe91969af7a0b/raw/c12faf968e659356ec1cb53f313e7f8383836be3/getcomposer.sh" | sh \
&& COMPOSER_ALLOW_SUPERUSER=1 ./composer.phar install \
&& rm composer.phar

Expand Down

0 comments on commit 8c6ae7d

Please sign in to comment.