diff options
author | lizyn <zhiylin@outlook.com> | 2020-02-24 10:04:13 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-24 10:04:13 +0800 |
commit | b19df31d78d881a43bcf6b3215e5fc3781e8e8aa (patch) | |
tree | d0d9861694a4b5e5fbfdbeb53c255ecd15fe9328 /docker/php/Dockerfile | |
parent | 4d0c632c70ea50d459c3c55ddda2e0f394dd51cb (diff) | |
parent | 04d918cae0227c06a41d27fb6533dddbf30dfe71 (diff) | |
download | wallabag-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/Dockerfile | 34 |
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 @@ | |||
1 | FROM php:fpm | 1 | FROM 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 |
4 | ARG timezone='Europe/Paris' | 4 | ARG timezone='Europe/Paris' |
5 | ARG memorylimit='512M' | ||
5 | 6 | ||
6 | RUN apt-get update && apt-get install -y \ | 7 | RUN 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 | ||
19 | RUN 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 | |||
33 | RUN printf "\n" | pecl install imagick && docker-php-ext-enable imagick | ||
11 | 34 | ||
12 | RUN echo "date.timezone="$timezone > /usr/local/etc/php/conf.d/date_timezone.ini | 35 | RUN echo "date.timezone="$timezone > /usr/local/etc/php/conf.d/date_timezone.ini |
36 | RUN echo "memory_limit ="$memorylimit > /usr/local/etc/php/conf.d/memory_limit.ini | ||
13 | 37 | ||
14 | RUN usermod -u 1000 www-data | 38 | RUN usermod -u 1000 www-data |
15 | 39 | ||