-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
41 lines (34 loc) · 1 KB
/
Dockerfile
File metadata and controls
41 lines (34 loc) · 1 KB
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
FROM php:8.4
WORKDIR /app
RUN apt-get update && apt-get install -y \
cron \
git \
rsync \
libfreetype6-dev \
libicu-dev \
libjpeg62-turbo-dev \
libmcrypt-dev \
libxslt1-dev \
default-mysql-client \
libzip-dev \
zip \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
RUN docker-php-ext-configure \
gd --with-freetype --with-jpeg
RUN docker-php-ext-install \
bcmath \
gd \
intl \
opcache \
pdo_mysql \
soap \
xsl \
zip \
sockets \
ftp
RUN php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"; \
php -r "if (hash_file('sha384', 'composer-setup.php') === 'c8b085408188070d5f52bcfe4ecfbee5f727afa458b2573b8eaaf77b3419b0bf2768dc67c86944da1544f06fa544fd47') { echo 'Installer verified'.PHP_EOL; } else { echo 'Installer corrupt'.PHP_EOL; unlink('composer-setup.php'); exit(1); }"; \
php composer-setup.php --install-dir=/usr/local/bin --filename=composer; \
php -r "unlink('composer-setup.php');";
COPY default-php.ini /usr/local/etc/php/conf.d/