-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
70 lines (59 loc) · 1.54 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
FROM php:8.0.13-cli-alpine3.13
LABEL maintainer="[email protected]"
ARG PHPREDIS_VERSION="5.3.7"
ENV XDEBUG_VERSION="3.1.5"
# Install build dependencies
# hadolint ignore=SC2086,DL3018
RUN apk add --no-cache \
${PHPIZE_DEPS} \
bash \
gettext-dev \
icu-dev \
krb5-dev \
libpng-dev \
libxml2-dev \
libxslt-dev \
openldap-dev \
postgresql-dev \
libzip-dev \
imap-dev
SHELL ["/bin/bash", "-o", "pipefail", "-e", "-c"]
# Provide sources to build PHP redis client
RUN mkdir -p /usr/src/php/ext/redis \
&& curl -sSL "https://github.com/phpredis/phpredis/archive/${PHPREDIS_VERSION}.tar.gz" | tar xvz -C /usr/src/php/ext/redis --strip 1 \
&& echo 'redis' >> /usr/src/php-available-exts
# Configure and install PHP extensions
RUN docker-php-ext-configure \
imap --with-kerberos --with-imap-ssl \
&& docker-php-ext-install \
bcmath \
calendar \
exif \
gd \
gettext \
imap \
intl \
ldap \
mysqli \
opcache \
pcntl \
pdo_mysql \
pdo_pgsql \
redis \
shmop \
soap \
sockets \
sysvmsg \
sysvsem \
sysvshm \
xsl \
zip
# Install XDEBUG
RUN pecl install "xdebug-${XDEBUG_VERSION}"
# Add entrypoint
COPY docker-entrypoint.sh /usr/local/bin/docker-entrypoint.sh
# Configure working directory
WORKDIR /app
# Configure entrypoint
ENTRYPOINT ["/usr/local/bin/docker-entrypoint.sh"]
CMD [""]