aboutsummaryrefslogtreecommitdiffhomepage
path: root/docker/php/Dockerfile
diff options
context:
space:
mode:
authorlizyn <zhiylin@outlook.com>2020-02-24 10:04:13 +0800
committerGitHub <noreply@github.com>2020-02-24 10:04:13 +0800
commitb19df31d78d881a43bcf6b3215e5fc3781e8e8aa (patch)
treed0d9861694a4b5e5fbfdbeb53c255ecd15fe9328 /docker/php/Dockerfile
parent4d0c632c70ea50d459c3c55ddda2e0f394dd51cb (diff)
parent04d918cae0227c06a41d27fb6533dddbf30dfe71 (diff)
downloadwallabag-b19df31d78d881a43bcf6b3215e5fc3781e8e8aa.tar.gz
wallabag-b19df31d78d881a43bcf6b3215e5fc3781e8e8aa.tar.zst
wallabag-b19df31d78d881a43bcf6b3215e5fc3781e8e8aa.zip
Merge pull request #1 from wallabag/master
Keep up with the master again
Diffstat (limited to 'docker/php/Dockerfile')
-rw-r--r--docker/php/Dockerfile34
1 files changed, 29 insertions, 5 deletions
diff --git a/docker/php/Dockerfile b/docker/php/Dockerfile
index d0266ec7..171e12fc 100644
--- a/docker/php/Dockerfile
+++ b/docker/php/Dockerfile
@@ -1,15 +1,39 @@
1FROM php:fpm 1FROM php:7.2-fpm
2 2
3# Default timezone. To change it, use the argument in the docker-compose.yml file 3# Default timezone. To change it, use the argument in the docker-compose.yml file
4ARG timezone='Europe/Paris' 4ARG timezone='Europe/Paris'
5ARG memorylimit='512M'
5 6
6RUN apt-get update && apt-get install -y \ 7RUN apt-get update && apt-get install -y \
7 libmcrypt-dev libicu-dev libpq-dev libxml2-dev libpng-dev libjpeg-dev \ 8 libmcrypt-dev \
8 && /usr/local/bin/docker-php-ext-configure gd --with-jpeg-dir=/usr/include \ 9 libicu-dev \
9 && docker-php-ext-install \ 10 libpq-dev \
10 iconv mbstring intl pdo pdo_mysql pdo_pgsql gd 11 libxml2-dev \
12 libpng-dev \
13 libjpeg-dev \
14 libsqlite3-dev \
15 imagemagick \
16 libmagickwand-dev \
17 libtidy-dev \
18 git
19RUN docker-php-ext-install \
20 iconv \
21 mbstring \
22 gd \
23 intl \
24 pdo \
25 pdo_mysql \
26 pdo_pgsql \
27 pdo_sqlite \
28 sockets \
29 tidy \
30 bcmath \
31 zip
32
33RUN printf "\n" | pecl install imagick && docker-php-ext-enable imagick
11 34
12RUN echo "date.timezone="$timezone > /usr/local/etc/php/conf.d/date_timezone.ini 35RUN echo "date.timezone="$timezone > /usr/local/etc/php/conf.d/date_timezone.ini
36RUN echo "memory_limit ="$memorylimit > /usr/local/etc/php/conf.d/memory_limit.ini
13 37
14RUN usermod -u 1000 www-data 38RUN usermod -u 1000 www-data
15 39