-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
83 lines (69 loc) · 1.98 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
71
72
73
74
75
76
77
78
79
80
81
82
83
FROM php:8.1.12-cli-alpine3.16 AS php81
CMD ["/bin/sh"]
WORKDIR /var/www/html
RUN apk add --no-cache --update git
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
RUN set -ex \
# Build dependencies
&& apk add --no-cache --virtual .build-deps \
$PHPIZE_DEPS \
&& apk add --no-cache \
libgomp \
freetype-dev \
libjpeg-turbo-dev \
libwebp-dev \
libpng-dev \
libavif-dev \
imagemagick \
imagemagick-dev \
&& pecl install imagick-3.7.0 \
&& docker-php-ext-enable \
imagick \
&& apk del .build-deps
CMD tail -f /dev/null
FROM php:8.2.21-cli-alpine3.20 AS php82
CMD ["/bin/sh"]
WORKDIR /var/www/html
RUN apk add --no-cache --update git
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
RUN set -ex \
# Build dependencies
&& apk add --no-cache --virtual .build-deps \
$PHPIZE_DEPS \
&& apk add --no-cache \
libgomp \
freetype-dev \
libjpeg-turbo-dev \
libwebp-dev \
libpng-dev \
libavif-dev \
imagemagick \
imagemagick-dev \
&& pecl install imagick-3.7.0 \
&& docker-php-ext-enable \
imagick \
&& apk del .build-deps
CMD tail -f /dev/null
FROM php:8.3.9-cli-alpine3.20 AS php83
CMD ["/bin/sh"]
WORKDIR /var/www/html
RUN apk add --no-cache --update git
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
RUN set -ex \
# Build dependencies
&& apk add --no-cache --virtual .build-deps \
$PHPIZE_DEPS \
&& apk add --no-cache \
libgomp \
freetype-dev \
libjpeg-turbo-dev \
libwebp-dev \
libpng-dev \
libavif-dev \
imagemagick \
imagemagick-dev \
&& pecl install imagick-3.7.0 \
&& docker-php-ext-enable \
imagick \
&& apk del .build-deps
CMD tail -f /dev/null