-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile.alpine
More file actions
36 lines (34 loc) · 920 Bytes
/
Dockerfile.alpine
File metadata and controls
36 lines (34 loc) · 920 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
29
30
31
32
33
34
35
36
# Start with the official PHP 8.3 image based on Alpine
FROM php:8.3-alpine
# Set the maintainer label
LABEL maintainer="Tarun Jangra <[email protected]>"
# Install system dependencies and PHP extensions
RUN apk --no-cache add \
# Install necessary build dependencies
$PHPIZE_DEPS \
curl-dev \
libpng-dev \
libjpeg-turbo-dev \
freetype-dev \
icu-dev \
gmp-dev \
zip \
unzip \
libzip-dev \
oniguruma-dev \
libxml2-dev \
# For mysqli, pdo_mysql, intl, zip, fileinfo, curl, bcmath, gmp, opcache, gd
&& docker-php-ext-configure gd --with-freetype --with-jpeg \
&& docker-php-ext-install \
mysqli \
pdo_mysql \
intl \
zip \
fileinfo \
curl \
bcmath \
gmp \
opcache \
gd \
# Clean up unnecessary files to keep the image size small
&& apk del --no-cache $PHPIZE_DEPS