-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
28 lines (26 loc) · 701 Bytes
/
Dockerfile
File metadata and controls
28 lines (26 loc) · 701 Bytes
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
FROM php:8.5-alpine3.22
LABEL maintainer="Andrea Falco <andrea@falco.sh>"
# PHP ext-imap
ARG PHPEXT_IMAP_VERSION=1.0.3
RUN set -eux; \
persistentDeps=" \
c-client \
"; \
buildDeps=" \
imap-dev \
krb5-dev \
openssl-dev \
"; \
apk add --no-cache --virtual .imap-persistent-deps ${persistentDeps}; \
apk add --no-cache --virtual .imap-build-deps ${buildDeps}; \
\
pecl bundle -d /usr/src/php/ext imap-${PHPEXT_IMAP_VERSION}; \
docker-php-ext-configure imap \
--with-imap-ssl \
--with-kerberos \
; \
docker-php-ext-install -j$(nproc) imap; \
\
apk del --no-cache --no-network .imap-build-deps; \
docker-php-source delete; \
rm -rf /tmp/* /var/tmp/*