Symlink /usr/local/bin/drush to drush.phar to fix TYPO3\PharStreamWrapper\Exception: Unexpected file extension

This commit is contained in:
Michael Stenta 2020-02-10 14:22:47 -05:00
parent c64a669525
commit c3bd73f89f
1 changed files with 4 additions and 3 deletions

View File

@ -15,9 +15,10 @@ RUN apt-get update && apt-get install -y git unzip
# Install Drush 8 with the phar file.
ENV DRUSH_VERSION 8.2.1
RUN curl -fsSL -o /usr/local/bin/drush "https://github.com/drush-ops/drush/releases/download/${DRUSH_VERSION}/drush.phar" && \
chmod +x /usr/local/bin/drush && \
drush core-status
RUN curl -fsSL -o /usr/local/bin/drush.phar "https://github.com/drush-ops/drush/releases/download/${DRUSH_VERSION}/drush.phar" \
&& chmod +x /usr/local/bin/drush.phar \
&& ln -s /usr/local/bin/drush.phar /usr/local/bin/drush \
&& drush core-status
# Install mariadb-client so Drush can connect to the database.
RUN apt-get update && apt-get install -y mariadb-client