-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
38 lines (27 loc) · 815 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
27
28
29
30
31
32
33
34
35
36
37
38
FROM php:cli
# apt dependancies
RUN apt-get update && apt-get upgrade -y
RUN apt-get install -y --no-install-recommends \
git \
libicu-dev
RUN docker-php-ext-install gettext
# core extensions
RUN docker-php-ext-install \
intl \
opcache \
pcntl
# pecl extensions
RUN pecl channel-update pecl.php.net \
&& pecl install \
apcu-5.1.18 \
&& docker-php-ext-enable \
apcu
COPY docker/conf.d /usr/local/etc/php/conf.d
RUN apt-get autoremove --purge -y && apt-get clean
RUN php -r "copy('http://getcomposer.org/installer', 'composer-setup.php');"
RUN php composer-setup.php --install-dir=/usr/local/bin --filename=composer
RUN php -r "unlink('composer-setup.php');"
COPY . /app
WORKDIR /app
RUN composer install
ENTRYPOINT ["php", "/app/build.php"]