-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
57 lines (54 loc) · 1.95 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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
FROM php:7
LABEL mantainer "TikiWiki <[email protected]>"
RUN apt-get update \
&& apt-get install -y \
libfreetype6-dev \
libjpeg-dev \
libldap2-dev \
libldb-dev \
libmemcached-dev \
libonig-dev \
libpng++-dev \
libzip-dev \
zlib1g-dev \
unzip \
&& ln -s /usr/lib/x86_64-linux-gnu/libldap.so /usr/lib/libldap.so \
&& ln -s /usr/lib/x86_64-linux-gnu/liblber.so /usr/lib/liblber.so \
&& docker-php-ext-configure gd --with-freetype --with-jpeg \
&& docker-php-ext-install calendar gd ldap mysqli mbstring pdo_mysql zip \
&& printf "yes\n" | pecl install xdebug \
&& printf "no\n" | pecl install apcu-beta \
&& printf "no\n" | pecl install memcached \
&& echo 'extension=apcu.so' > /usr/local/etc/php/conf.d/pecl-apcu.ini \
&& echo 'extension=memcached.so' > /usr/local/etc/php/conf.d/pecl-memcached.ini \
&& echo "extension=ldap.so" > /usr/local/etc/php/conf.d/docker-php-ext-ldap.ini \
&& curl -s -o installer.php https://getcomposer.org/installer \
&& php installer.php --install-dir=/usr/local/bin/ --filename=composer \
&& { \
COMPOSER_HOME=/usr/local/share/composer \
COMPOSER_BIN_DIR=/usr/local/bin \
COMPOSER_CACHE_DIR="/tmp/root/composer" \
composer global require psy/psysh --prefer-stable; \
} \
&& rm installer.php \
&& apt-get purge -y \
libfreetype6-dev \
libjpeg-dev \
libldap2-dev \
libldb-dev \
libmemcached-dev \
libonig-dev \
libpng++-dev \
libzip-dev \
zlib1g-dev \
&& rm -rf /var/lib/apt/lists/* \
&& rm -rf /tmp/* \
&& { \
echo "file_uploads = On"; \
echo "upload_max_filesize = 2048M"; \
echo "post_max_size = 2048M"; \
echo "max_file_uploads = 20"; \
} > /usr/local/etc/php/conf.d/docker-uploads.ini
COPY root/ /
ENTRYPOINT ["/entrypoint.sh"]
CMD ["psysh"]