-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.cli
executable file
·65 lines (58 loc) · 1.78 KB
/
Dockerfile.cli
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
FROM php:7.4-cli
# Setup Debian
RUN apt-get upgrade && apt-get update && ACCEPT_EULA=Y && apt-get install -y \
unzip \
libfreetype6-dev \
libjpeg62-turbo-dev \
libmcrypt-dev \
libmemcached-dev \
libzip-dev \
libgeoip-dev \
libxml2-dev \
libxslt-dev \
libtidy-dev \
libssl-dev \
zlib1g-dev \
libpng-dev \
libwebp-dev \
libgmp-dev \
libjpeg-dev \
libfreetype6-dev \
libaio1 \
libldap2-dev \
libonig-dev \
apt-file \
wget \
vim \
gnupg \
gnupg2 \
zip \
git \
gcc \
g++ \
librdkafka-dev \
autoconf \
libc-dev \
pkg-config \
&& pecl install redis \
&& pecl install geoip-1.1.1 \
&& pecl install apcu \
&& pecl install memcached \
&& pecl install timezonedb \
&& pecl install grpc \
&& pecl install rdkafka \
&& docker-php-ext-configure gd --with-freetype --with-webp --with-jpeg \
&& docker-php-ext-install gd calendar gmp ldap sysvmsg pcntl iconv bcmath xml mbstring pdo tidy gettext intl pdo_mysql mysqli simplexml xml xsl xmlwriter zip opcache exif sockets \
&& docker-php-ext-enable redis geoip apcu memcached timezonedb grpc rdkafka \
&& printf "log_errors = On \nerror_log = /dev/stderr\n" > /usr/local/etc/php/conf.d/php-logs.ini
# PHP settings
COPY etc/php/production.ini /usr/local/etc/php/conf.d/production.ini
# Composer
RUN mkdir -p /usr/local/ssh
COPY etc/ssh/* /usr/local/ssh/
RUN sh /usr/local/ssh/install-composer.sh && \
mv composer.phar /usr/local/bin/composer
### PROD ENVIRONMENT SPECIFIC ###
################################
ENV PROVISION_CONTEXT "cli"
################################