forked from drupal-docker/drush
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile-codeship-7.4
More file actions
30 lines (27 loc) · 1.83 KB
/
Dockerfile-codeship-7.4
File metadata and controls
30 lines (27 loc) · 1.83 KB
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
FROM php:7.4.24-cli-alpine
LABEL maintainer="digitalpulp"
RUN apk add --no-cache --virtual .dd-build-deps libpng-dev libjpeg-turbo-dev postgresql-dev libxml2-dev $PHPIZE_DEPS \
&& apk add --no-cache --update libmemcached-libs zlib libzip-dev icu-dev \
&& apk add --no-cache libpng libjpeg libpq libxml2 libmemcached freetype-dev oniguruma-dev \
&& docker-php-ext-configure gd --with-freetype --with-jpeg \
&& docker-php-ext-install gd mbstring pdo pdo_mysql pdo_pgsql zip \
&& docker-php-ext-install opcache bcmath soap \
&& docker-php-ext-configure intl && docker-php-ext-install intl \
&& pecl install redis-3.1.1 xdebug \
&& docker-php-ext-enable redis xdebug \
&& php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" \
&& php -r "if (hash_file('sha384', 'composer-setup.php') === '906a84df04cea2aa72f40b5f787e49f22d4c2f19492ac310e8cba5b96ac8b64115ac402c8cd292b8a03482574915d1a8') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;" \
&& php composer-setup.php --install-dir=/usr/local/bin --filename=composer \
&& php -r "unlink('composer-setup.php');" \
&& echo "export PATH=~/.composer/vendor/bin:\$PATH" >> ~/.bash_profile \
&& mkdir /root/.ssh \
&& echo "StrictHostKeyChecking accept-new" >> /root/.ssh/config \
&& apk add --no-cache sudo git libpng libjpeg libpq libxml2 mysql-client openssh-client rsync patch expect \
&& apk del .dd-build-deps \
&& apk add --no-cache mysql-client openssh-client rsync \
&& apk add --no-cache bash bash-doc bash-completion
COPY drupal-*.ini /usr/local/etc/php/conf.d/
COPY ssh-add.sh /root
COPY key-place.sh /root
RUN chmod 655 /root/ssh-add.sh && chmod 655 /root/key-place.sh
CMD ["tail", "-f", "/dev/null"]