-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
34 lines (26 loc) · 1.08 KB
/
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
27
28
29
30
31
32
33
34
FROM samirkherraz/alpine-s6
ENV DATABASE_HOST=localhost \
DATABASE_PORT=3306 \
DRUPAL_DB_NAME=drupal \
DRUPAL_DB_USERNAME=drupal \
DRUPAL_DB_PASSWORD=password \
ADMIN_USERNAME=admin \
ADMIN_PASSWORD=password \
SITE_NAME="drupal" \
TRUSTED_HOST=localhost
RUN set -x \
&& apk update \
&& apk add --no-cache mysql-client git composer php7 php7-fpm php7-ldap php7-dom php7-gd php7-json php7-mysqli php7-opcache php7-pdo php7-pdo_mysql php7-session php7-simplexml php7-tokenizer php7-xml php7-xmlwriter php7-ctype php7-curl php7-zip \
&& apk add --no-cache nginx \
&& rm /etc/nginx/conf.d/default.conf \
&& mkdir /run/nginx \
&& rm -R /var/www/* || true \
&& chown nginx:nginx /run/nginx
RUN mkdir -p /opt/ressources/ \
&& composer create-project drupal-composer/drupal-project:${DRUPAL_VERSION} /opt/ressources/drupal --prefer-dist --no-interaction --no-dev --quiet
ADD conf/ /
RUN set -x \
&& chmod +x /etc/cont-init.d/* \
&& chmod +x /etc/s6/services/*/* \
&& chmod +x /etc/periodic/*/*