-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
24 lines (22 loc) · 666 Bytes
/
Copy pathDockerfile
File metadata and controls
24 lines (22 loc) · 666 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
FROM php:8.3-alpine3.22
LABEL maintainer="Andrea Falco <andrea@falco.sh>"
# PHP ext-memcached
ARG PHPEXT_MEMCACHED_VERSION=3.4.0
RUN set -eux; \
persistentDeps=" \
libmemcached \
libzip \
"; \
buildDeps=" \
libmemcached-dev \
libzip-dev \
"; \
apk add --no-cache --virtual .memcached-persistent-deps ${persistentDeps}; \
apk add --no-cache --virtual .memcached-build-deps ${buildDeps}; \
\
pecl bundle -d /usr/src/php/ext memcached-${PHPEXT_MEMCACHED_VERSION}; \
docker-php-ext-install -j$(nproc) memcached; \
\
apk del --no-cache --no-network .memcached-build-deps; \
docker-php-source delete; \
rm -rf /tmp/* /var/tmp/*