Skip to content
Commits on Source (2)
......@@ -55,7 +55,21 @@ RUN set -ex \
&& mv composer.phar /usr/local/bin/composer
# clone the original repo
RUN git clone --branch $WALLABAG_VERSION https://git.immae.eu/github/wallabag/wallabag.git /var/www/wallabag
RUN git clone --branch $WALLABAG_VERSION --depth 1 https://github.com/wallabag/wallabag.git /var/www/wallabag
# prepare the patch (and clean up afterwards)
RUN PATCHTEMP=$( mktemp -d ) \
&& git clone https://git.immae.eu/github/wallabag/wallabag.git $PATCHTEMP \
&& cd $PATCHTEMP \
&& git checkout -t origin/gitolite_local/ldap \
&& git diff master -- . ':(exclude)app/config/wallabag.yml' ':(exclude).travis.yml' > /var/www/wallabag/wallabag-ldap.patch \
&& cd / \
&& rm -rf $PATCHTEMP
# apply the patch
RUN cd /var/www/wallabag/ \
&& patch -p1 -i wallabag-ldap.patch \
&& rm wallabag-ldap.patch
COPY root /
......