-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdockerfile
More file actions
49 lines (44 loc) · 1.02 KB
/
dockerfile
File metadata and controls
49 lines (44 loc) · 1.02 KB
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
39
40
41
42
43
44
45
46
47
48
49
FROM php:7.2.34-fpm-alpine3.12
RUN set -ex; \
apk update; \
apk upgrade; \
apk add --no-cache nginx supervisor mediainfo tzdata
RUN cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
# Add Build Dependencies
RUN apk update && apk add --no-cache --virtual .build-deps \
zlib-dev \
libjpeg-turbo-dev \
libpng-dev \
libxml2-dev \
bzip2-dev \
zip \
postgresql-dev \
postgresql-libs \
$PHPIZE_DEPS
# Add Production Dependencies
RUN apk add --update --no-cache \
jpegoptim \
pngquant \
optipng \
nano \
icu-dev \
freetype-dev \
libpq
# Configure & Install Extension
RUN docker-php-ext-configure \
opcache --enable-opcache &&\
docker-php-ext-configure gd --with-jpeg-dir=/usr/include/ --with-freetype-dir=/usr/include/ && \
docker-php-ext-configure pgsql -with-pgsql=/usr/local/pgsql &&\
docker-php-ext-install \
opcache \
pdo \
pgsql \
pdo_pgsql \
sockets \
intl \
gd \
xml \
bz2 \
pcntl \
bcmath \
exif