-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
33 lines (28 loc) · 1.37 KB
/
Dockerfile
File metadata and controls
33 lines (28 loc) · 1.37 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
ARG WORDPRESS_PHP_IMAGE=php8.1
FROM wordpress:${WORDPRESS_PHP_IMAGE}
RUN apt-get update -y && \
apt-get install -y \
wget sudo curl libxml2-dev nano zip unzip htop screenfetch \
libzip-dev libpng-dev libjpeg-dev libfreetype6-dev libonig-dev \
libssl-dev libcurl4-openssl-dev libicu-dev libreadline-dev \
vim less lsof net-tools dnsutils iputils-ping git iproute2 \
&& docker-php-ext-configure gd --with-freetype --with-jpeg \
&& docker-php-ext-install zip intl pdo_mysql mbstring curl soap gd \
&& pecl install redis \
&& docker-php-ext-enable redis \
&& rm -rf /var/lib/apt/lists/*
RUN { \
echo "memory_limit = 8G"; \
echo "upload_max_filesize = 1024M"; \
echo "post_max_size = 2048M"; \
echo "max_execution_time = 120000"; \
echo "max_input_time = 600"; \
echo "max_input_vars = 2000"; \
echo "max_file_uploads = 100"; \
} > /usr/local/etc/php/conf.d/custom-limits.ini
RUN curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar && \
chmod +x wp-cli.phar && mv wp-cli.phar /usr/local/bin/wp
RUN wget https://raw.githubusercontent.com/BaseMax/php-installer-ioncube-sourceguardian/main/install_loaders.php && \
php install_loaders.php && rm install_loaders.php
RUN curl -sS https://getcomposer.org/installer | php && \
mv composer.phar /usr/local/bin/composer