Skip to content

Commit db0b78a

Browse files
committed
Updating image for Drupal 9
1 parent 14cf862 commit db0b78a

2 files changed

Lines changed: 8 additions & 3 deletions

File tree

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ FROM node:14.17 AS node
66
RUN npm install -g gulp-cli
77

88
# Build stage using php image.
9-
FROM php:7.3-cli
9+
FROM php:7.4-cli
1010

1111
# Install some needed packages then after install remove the cache files of
1212
# apt-get to save space.
@@ -58,7 +58,7 @@ RUN cd /usr/local/bin; \
5858

5959
# Set some environment variables for composer and drush.
6060
ENV COMPOSER_ALLOW_SUPERUSER 1
61-
ENV DRUSH_VERSION 8.4.8
61+
ENV DRUSH_VERSION 10.4.3
6262
ENV TERMINUS_PLUGINS_DIR /usr/local/share/terminus-plugins
6363

6464
# Copy our scripts folder into the tmp folder of this container.

scripts/drush-setup

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
#!/bin/sh
22

3-
curl -L https://github.com/drush-ops/drush/releases/download/${DRUSH_VERSION}/drush.phar -o /usr/local/bin/drush
3+
mkdir -p /usr/local/share/drush
4+
/usr/bin/env composer -n --working-dir=/usr/local/share/drush require drush/drush:${DRUSH_VERSION}
5+
ln -fs /usr/local/share/drush/vendor/drush/drush/drush /usr/local/bin/drush
46
chmod +x /usr/local/bin/drush
7+
8+
# curl -L https://github.com/drush-ops/drush/releases/download/${DRUSH_VERSION}/drush.phar -o /usr/local/bin/drush
9+
# chmod +x /usr/local/bin/drush

0 commit comments

Comments
 (0)