-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
28 lines (24 loc) · 766 Bytes
/
Dockerfile
File metadata and controls
28 lines (24 loc) · 766 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-cli
# install dependencies
RUN apt update && apt install -y \
libexif-dev \
libpng-dev \
libjpeg-dev \
libicu-dev \
libmagickwand-dev \
git \
zip \
curl \
&& CPPFLAGS='-Dphp_strtolower=zend_str_tolower' pecl install imagick \
&& docker-php-ext-enable imagick \
&& docker-php-ext-configure gd --with-freetype --with-jpeg \
&& docker-php-ext-install \
fileinfo \
gd \
exif \
&& apt-get clean
# install composer
COPY --from=composer /usr/bin/composer /usr/bin/composer
# setup entrypoint
COPY entrypoint.sh /usr/local/bin/entrypoint.sh
ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]