-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
38 lines (29 loc) · 1.02 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
FROM wouterds/rpi-php:7.0.19
MAINTAINER Wouter De Schuyter <[email protected]>
# Enable cross build
RUN ["cross-build-start"]
# Make sure packages are up to date
RUN apt-get update
# Install opcache
RUN docker-php-ext-install -j$(nproc) opcache
# Install db extensions
RUN docker-php-ext-install -j$(nproc) mysqli pdo pdo_mysql
# Install mcrypt
RUN apt-get install -y libmcrypt-dev \
&& docker-php-ext-install -j$(nproc) mcrypt
# Install intl
RUN apt-get install -y libicu-dev \
&& docker-php-ext-install -j$(nproc) intl
# Install gd
RUN apt-get update && apt-get install -y \
libfreetype6-dev \
libjpeg62-turbo-dev \
libpng12-dev \
&& docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ \
&& docker-php-ext-install -j$(nproc) gd
# Install gmp
RUN apt-get install -y libgmp-dev \
&& ln -s /usr/include/arm-linux-gnueabihf/gmp.h /usr/include/gmp.h \
&& docker-php-ext-install -j$(nproc) gmp
# Disable cross build
RUN ["cross-build-end"]