File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -302,10 +302,12 @@ RUN if [ ${INSTALL_SWOOLE} = true ]; then \
302302USER root
303303
304304ARG INSTALL_DRUSH=false
305+ ARG DRUSH_VERSION=${DRUSH_VERSION}
305306
306307RUN if [ ${INSTALL_DRUSH} = true ]; then \
308+ apt-get update -yqq && \
307309 apt-get -y install mysql-client && \
308- # Install Drush 8 with the phar file.
310+ # Install Drush with the phar file.
309311 curl -fsSL -o /usr/local/bin/drush https://github.com/drush-ops/drush/releases/download/${DRUSH_VERSION}/drush.phar | bash && \
310312 chmod +x /usr/local/bin/drush && \
311313 drush core-status \
@@ -320,6 +322,7 @@ USER root
320322ARG INSTALL_DRUPAL_CONSOLE=false
321323
322324RUN if [ ${INSTALL_DRUPAL_CONSOLE} = true ]; then \
325+ apt-get update -yqq && \
323326 apt-get -y install mysql-client && \
324327 curl https://drupalconsole.com/installer -L -o drupal.phar && \
325328 mv drupal.phar /usr/local/bin/drupal && \
You can’t perform that action at this time.
0 commit comments