-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
26 lines (21 loc) · 877 Bytes
/
Dockerfile
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
FROM centurylink/apache-php:latest
MAINTAINER CenturyLink
# Install packages
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get -y upgrade && \
DEBIAN_FRONTEND=noninteractive apt-get -y install supervisor pwgen && \
apt-get -y install mysql-client && \
apt-get -y install postgresql-client
# Download v7.38 of Drupal into /app
RUN rm -fr /app && mkdir /app && cd /app && \
curl -O http://ftp.drupal.org/files/projects/drupal-7.38.tar.gz && \
tar -xzvf drupal-7.38.tar.gz && \
rm drupal-7.38.tar.gz && \
mv drupal-7.38/* drupal-7.38/.htaccess ./ && \
mv drupal-7.38/.gitignore ./ && \
rmdir drupal-7.38
#Config and set permissions for setting.php
RUN cp app/sites/default/default.settings.php app/sites/default/settings.php && \
chmod a+w app/sites/default/settings.php && \
chmod a+w app/sites/default
EXPOSE 80
CMD exec supervisord -n