Skip to content

Commit dac336e

Browse files
author
Fernado Pinheiro
committed
fix: Fix Drush install for the workspace
1 parent 0c41fce commit dac336e

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
@@ -302,10 +302,12 @@ RUN if [ ${INSTALL_SWOOLE} = true ]; then \
302302
USER root
303303

304304
ARG INSTALL_DRUSH=false
305+
ARG DRUSH_VERSION=${DRUSH_VERSION}
305306

306307
RUN 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
320322
ARG INSTALL_DRUPAL_CONSOLE=false
321323

322324
RUN 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 && \

0 commit comments

Comments
 (0)