-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile-7.1
38 lines (38 loc) · 905 Bytes
/
Dockerfile-7.1
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
FROM php:7.0-fpm-alpine
MAINTAINER Naba Das <[email protected]>
RUN apk add --no-cache \
apache2-proxy \
php7-fpm \
php7 \
php7-opcache \
php7-phar \
php7-json \
php7-iconv \
php7-xml \
php7-mbstring \
php7-openssl \
php7-pdo \
php7-ldap \
php7-gd \
php7-curl \
php7-ctype \
php7-dom \
php7-common \
php7-pdo_mysql \
php7-session \
php7-soap \
grep \
git \
curl \
vim
RUN rm -rf /etc/init.d/*; \
mkdir /run/apache2; \
addgroup -g 1000 -S www-data; \
adduser -G www-data -u 1000 -s /bin/sh -D www-data; \
sed -rie 's|;error_log = log/php7/error.log|error_log = /dev/stdout|g' /etc/php7/php-fpm.conf
COPY httpd.conf /etc/apache2/httpd.conf
COPY www.conf /etc/php7/php-fpm.d/www.conf
COPY php.ini /etc/php7/php.ini
COPY scripts /scripts
RUN chmod -R 755 /scripts
CMD ["/scripts/run.sh"]