-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile.7.1.30-apache-stretch
101 lines (86 loc) · 3.44 KB
/
Dockerfile.7.1.30-apache-stretch
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
90
91
92
93
94
95
96
97
98
99
100
101
FROM php:7.1.30-apache-stretch
ENV DEBIAN_FRONTEND noninteractive
ENV LANG C.UTF-8
ENV LANGUAGE C.UTF-8
ENV LC_ALL C.UTF-8
ENV TERM xterm
ENV WWW_ROOT="/var/www"
MAINTAINER Sigmapix <[email protected]>
RUN echo "nameserver 8.8.8.8" | tee /etc/resolv.conf > /dev/null \
&& sed -e 's/main/main contrib/g' -i /etc/apt/sources.list \
&& echo "deb http://http.debian.net/debian stretch-backports main" >> /etc/apt/sources.list \
&& apt-get clean \
&& apt-get update -y \
&& apt-get install -y --fix-missing \
wget \
curl \
cron \
sudo \
git-core \
vim \
ncurses-term \
zlib1g-dev \
libicu-dev \
libfreetype6-dev \
libjpeg62-turbo-dev \
libmcrypt-dev \
libpng-dev \
libzip-dev \
libxml2-dev \
xfonts-base \
xfonts-75dpi \
xz-utils \
x11-utils \
fontconfig \
fonts-liberation \
logrotate \
locales \
less \
htop \
gnupg \
apt-transport-https \
&& curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
RUN docker-php-ext-install -j$(nproc) \
mysqli \
mbstring \
mcrypt \
pdo \
pdo_mysql \
iconv \
zip \
intl \
sockets \
soap \
opcache \
bcmath \
exif \
&& docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ \
&& docker-php-ext-install -j$(nproc) gd
RUN pecl install channel://pecl.php.net/apcu_bc-1.0.3
RUN docker-php-ext-enable apcu --ini-name 10-docker-php-ext-apcu.ini
RUN docker-php-ext-enable apc --ini-name 20-docker-php-ext-apc.ini
RUN wget https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.5/wkhtmltox_0.12.5-1.stretch_amd64.deb -P /tmp/ && \
dpkg -i /tmp/wkhtmltox_0.12.5-1.stretch_amd64.deb
ADD update-exim4.conf /etc/exim4/update-exim4.conf.conf
RUN /usr/sbin/update-exim4.conf
# PhpUnit ( phpunit --exclude-group ignore -v --debug -c app src/ )
RUN wget https://phar.phpunit.de/phpunit.phar -O /usr/local/bin/phpunit && chmod +x /usr/local/bin/phpunit
RUN curl -sL https://deb.nodesource.com/setup_9.x | sudo -E bash -
RUN apt-get install -y nodejs
#RUN curl -sL https://deb.nodesource.com/setup_11.x | bash - && apt-get update && apt-get install -y nodejs
# apt-get update && apt-get install -y gconf-service libasound2 libatk1.0-0 libc6 libcairo2 libcups2 libdbus-1-3 libexpat1 libfontconfig1 libgcc1 libgconf-2-4 libgdk-pixbuf2.0-0 libglib2.0-0 libgtk-3-0 libnspr4 libpango-1.0-0 libpangocairo-1.0-0 libstdc++6 libx11-6 libx11-xcb1 libxcb1 libxcomposite1 libxcursor1 libxdamage1 libxext6 libxfixes3 libxi6 libxrandr2 libxrender1 libxss1 libxtst6 ca-certificates libappindicator1 libnss3 lsb-release xdg-utils && \
# npm install --global --unsafe-perm puppeteer && \
# chmod -R o+rx /usr/lib/node_modules/puppeteer/.local-chromium
RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
RUN echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
RUN apt-get update && apt-get install -y yarn
ADD entrypoint.sh /entrypoint.sh
RUN chmod a+x /entrypoint.sh
ADD php.ini /usr/local/etc/php/conf.d/php.custom.ini
ADD apache-config.conf /etc/apache2/sites-enabled/000-default.conf
RUN a2enmod rewrite
RUN a2enmod remoteip
RUN a2enmod ssl
CMD ["/entrypoint.sh"]
EXPOSE 80
EXPOSE 443