-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
89 lines (84 loc) · 2.66 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
84
85
86
87
88
89
FROM php:8-cli-alpine
MAINTAINER R. Hessing
RUN apk --update add \
aspell-dev \
autoconf \
bzip2-dev \
composer \
coreutils \
freetype-dev \
g++ \
gettext \
gettext-asprintf \
gettext-dev \
gettext-libs \
git \
gmp-dev \
libgomp \
libintl \
libjpeg-turbo-dev \
libmcrypt-dev \
libpng-dev \
libunistring \
libuv-dev \
libzip-dev \
make \
icu-dev \
supervisor \
tidyhtml-dev \
tini \
unzip \
zip \
&& docker-php-ext-install -j$(nproc) iconv \
&& docker-php-ext-configure gd --with-freetype=/usr/include/ --with-jpeg=/usr/include/ \
&& docker-php-ext-install -j$(nproc) gd \
&& docker-php-ext-enable gd \
&& docker-php-ext-configure bcmath \
&& docker-php-ext-install -j$(nproc) bcmath \
&& docker-php-ext-enable bcmath \
&& docker-php-ext-configure bz2 \
&& docker-php-ext-install -j$(nproc) bz2 \
&& docker-php-ext-enable bz2 \
&& docker-php-ext-configure exif \
&& docker-php-ext-install -j$(nproc) exif \
&& docker-php-ext-enable exif \
&& docker-php-ext-configure gettext \
&& docker-php-ext-install -j$(nproc) gettext \
&& docker-php-ext-enable gettext \
&& docker-php-ext-configure gmp \
&& docker-php-ext-install -j$(nproc) gmp \
&& docker-php-ext-enable gmp \
&& docker-php-ext-configure intl \
&& docker-php-ext-install -j$(nproc) intl \
&& docker-php-ext-enable intl \
&& docker-php-ext-configure mysqli \
&& docker-php-ext-install -j$(nproc) mysqli \
&& docker-php-ext-enable mysqli \
&& docker-php-ext-configure pspell \
&& docker-php-ext-install -j$(nproc) pspell \
&& docker-php-ext-enable pspell \
&& docker-php-ext-configure shmop \
&& docker-php-ext-install -j$(nproc) shmop \
&& docker-php-ext-enable shmop \
&& docker-php-ext-configure tidy \
&& docker-php-ext-install -j$(nproc) tidy \
&& docker-php-ext-enable tidy \
&& docker-php-ext-configure zip \
&& docker-php-ext-install -j$(nproc) zip \
&& docker-php-ext-enable zip \
&& pecl channel-update pecl.php.net \
&& pecl install mcrypt \
&& pecl install redis \
&& docker-php-ext-enable mcrypt \
&& docker-php-ext-enable redis \
&& composer self-update --2 \
&& apk del --no-cache \
g++ \
make \
&& rm -rf /tmp/* \
&& rm /var/cache/apk/*
COPY docker-entrypoint.sh /usr/local/bin/
RUN mkdir -p /var/www \
&& chmod 755 /usr/local/bin/docker-entrypoint.sh
ENTRYPOINT ["/sbin/tini", "--"]
CMD ["/usr/local/bin/docker-entrypoint.sh"]