Skip to content

Commit a03ce23

Browse files
authored
Merge pull request laradock#1520 from fnandogp/master
fix: Fix Drush install for the workspace
2 parents fc87367 + dac336e commit a03ce23

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

workspace/Dockerfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,10 +322,12 @@ RUN if [ ${INSTALL_SWOOLE} = true ]; then \
322322
USER root
323323

324324
ARG INSTALL_DRUSH=false
325+
ARG DRUSH_VERSION=${DRUSH_VERSION}
325326

326327
RUN if [ ${INSTALL_DRUSH} = true ]; then \
328+
apt-get update -yqq && \
327329
apt-get -y install mysql-client && \
328-
# Install Drush 8 with the phar file.
330+
# Install Drush with the phar file.
329331
curl -fsSL -o /usr/local/bin/drush https://github.com/drush-ops/drush/releases/download/${DRUSH_VERSION}/drush.phar | bash && \
330332
chmod +x /usr/local/bin/drush && \
331333
drush core-status \
@@ -340,6 +342,7 @@ USER root
340342
ARG INSTALL_DRUPAL_CONSOLE=false
341343

342344
RUN if [ ${INSTALL_DRUPAL_CONSOLE} = true ]; then \
345+
apt-get update -yqq && \
343346
apt-get -y install mysql-client && \
344347
curl https://drupalconsole.com/installer -L -o drupal.phar && \
345348
mv drupal.phar /usr/local/bin/drupal && \

0 commit comments

Comments
 (0)