-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
32 lines (22 loc) · 828 Bytes
/
Dockerfile
File metadata and controls
32 lines (22 loc) · 828 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
FROM 2dotstwice/php71-cli
MAINTAINER Kristof Coomans "kristof@2dotstwice.be"
ENV REFRESHED_AT "2018-04-30 09:07:00"
USER root
ADD ./files/drupal-update.sh /drupal-update.sh
RUN DEBIAN_FRONTEND=noninteractive apt-get -qq update && \
DEBIAN_FRONTEND=noninteractive apt-get -y --fix-missing --no-install-recommends -q install \
mysql-client \
curl \
wget \
sed && \
curl -sS https://getcomposer.org/installer | php && mv composer.phar /usr/local/bin/composer && \
rm -rf /var/lib/apt/lists/* && \
mkdir /home/www-data && \
chown www-data:www-data /home/www-data;
USER www-data:www-data
ENV PATH ~/.composer/vendor/bin:$PATH
ENV HOME /home/www-data
RUN composer --verbose global require drush/drush:8.*
USER www-data:www-data
WORKDIR /usr/share/nginx/html
CMD /bin/bash