-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
75 lines (69 loc) · 2.4 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
FROM php:8.3.10-fpm-bullseye
LABEL maintainer="GeoKrety Team <[email protected]>"
ARG TIMEZONE=Europe/Paris
# Add extension to php
RUN apt-get update \
&& apt-get install -y \
libmagickwand-dev \
libfreetype6-dev \
libjpeg62-turbo-dev \
libmcrypt-dev \
libpng-dev \
libpq-dev \
libxslt-dev \
libcurl4-openssl-dev \
libssl-dev \
graphicsmagick-imagemagick-compat \
httping \
msmtp \
locales \
gettext \
vim \
curl \
wget \
git \
zip \
postgresql-client \
libfcgi-bin \
&& apt-get clean \
&& rm -r /var/lib/apt/lists/* \
\
&& echo "set mouse-=a" > /root/.vimrc \
&& echo "syn on" >> /root/.vimrc \
\
&& docker-php-ext-install bcmath gettext mysqli pdo_mysql pgsql pdo_pgsql bz2 xsl pcntl \
&& pecl install raphf \
&& docker-php-ext-enable raphf pcntl \
&& pecl install mcrypt imagick pecl_http \
&& docker-php-ext-enable imagick mcrypt http \
&& docker-php-ext-configure gd --with-freetype --with-jpeg \
&& docker-php-ext-install -j$(nproc) gd \
&& docker-php-ext-configure opcache --enable-opcache \
&& docker-php-ext-install opcache \
&& docker-php-ext-install sockets \
\
&& pecl install -o -f redis \
&& rm -rf /tmp/pear \
&& docker-php-ext-enable redis \
\
&& echo 'date.timezone = "${TIMEZONE}"' > /usr/local/etc/php/conf.d/timezone.ini \
&& echo 'sendmail_path = "/usr/sbin/msmtp -t"' > /usr/local/etc/php/conf.d/mail.ini \
&& echo 'upload_max_filesize = 8M' > /usr/local/etc/php/conf.d/upload.ini \
\
&& curl -sSL https://getcomposer.org/installer | php -- --filename=composer --install-dir=/usr/local/bin/ \
\
&& curl -sSL https://dl.min.io/client/mc/release/linux-amd64/mc -o /usr/local/bin/mc \
&& chmod +x /usr/local/bin/mc \
\
&& curl -sSL https://raw.githubusercontent.com/renatomefi/php-fpm-healthcheck/master/php-fpm-healthcheck -o /usr/local/bin/php-fpm-healthcheck \
&& chmod +x /usr/local/bin/php-fpm-healthcheck \
\
&& echo "pm.status_path = /status" >> /usr/local/etc/php-fpm.d/zz-docker.conf \
&& echo "pm.max_children = 10" >> /usr/local/etc/php-fpm.d/zz-docker.conf
# Configure
COPY files/etc/locale.gen /etc/locale.gen
RUN locale-gen
# Install other files
COPY files/ /
# Install site
ONBUILD ARG GIT_COMMIT='undef'