File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -322,10 +322,12 @@ RUN if [ ${INSTALL_SWOOLE} = true ]; then \
322322USER root
323323
324324ARG INSTALL_DRUSH=false
325+ ARG DRUSH_VERSION=${DRUSH_VERSION}
325326
326327RUN 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
340342ARG INSTALL_DRUPAL_CONSOLE=false
341343
342344RUN 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 && \
You can’t perform that action at this time.
0 commit comments