-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathDockerfile
More file actions
30 lines (25 loc) · 885 Bytes
/
Dockerfile
File metadata and controls
30 lines (25 loc) · 885 Bytes
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.1.3-cli
MAINTAINER Riverline
# Install composer
COPY --from=composer:latest /usr/bin/composer /usr/bin/composer
# Install php extensions
RUN apt-get update && apt-get install -y --no-install-recommends \
zlib1g-dev
# PHP EXTENSIONS
RUN apt-get install -y libzip-dev libgearman-dev \
&& docker-php-ext-install -j$(nproc) zip sysvmsg sysvshm \
&& docker-php-source delete
RUN apt-get -y --allow-unauthenticated install libgearman-dev wget unzip \
&& cd /tmp \
&& wget https://github.com/wcgallego/pecl-gearman/archive/gearman-2.0.6.zip \
&& unzip gearman-2.0.6.zip \
&& mv pecl-gearman-gearman-2.0.6 pecl-gearman \
&& cd pecl-gearman \
&& phpize \
&& ./configure \
&& make -j$(nproc) \
&& make install \
&& cd / \
&& rm /tmp/gearman-2.0.6.zip \
&& rm -r /tmp/pecl-gearman \
&& docker-php-ext-enable gearman