Skip to content

Commit aa7f04e

Browse files
committed
Add image with all php exts installed.
1 parent 389d873 commit aa7f04e

File tree

2 files changed

+34
-0
lines changed

2 files changed

+34
-0
lines changed
File renamed without changes.

php-all-exts/Dockerfile

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
FROM ubuntu:16.04
2+
3+
MAINTAINER Kotliar Maksym kotlyar.maksim@gmail.com
4+
5+
RUN apt-get update && \
6+
apt-get install -y --no-install-recommends --no-install-suggests nginx php php-fpm ca-certificates && \
7+
rm -rf /var/lib/apt/lists/*
8+
9+
# exts
10+
RUN apt-get update && \
11+
apt-get install -y --no-install-recommends --no-install-suggests php-mongodb php-curl php-intl php-soap php-xml php-mysql php-amqp && \
12+
rm -rf /var/lib/apt/lists/*
13+
14+
15+
# forward request and error logs to docker log collector
16+
RUN ln -sf /dev/stdout /var/log/nginx/access.log \
17+
&& ln -sf /dev/stderr /var/log/nginx/error.log \
18+
&& ln -sf /dev/stderr /var/log/php7.0-fpm.log
19+
20+
RUN rm -f /etc/nginx/sites-enabled/*
21+
22+
COPY nginx.conf /etc/nginx/nginx.conf
23+
COPY php-fpm.conf /etc/php/7.0/fpm/pool.d/www.conf
24+
25+
RUN mkdir -p /run/php && touch /run/php/php7.0-fpm.sock && touch /run/php/php7.0-fpm.pid
26+
27+
COPY entrypoint.sh /entrypoint.sh
28+
RUN chmod 755 /entrypoint.sh
29+
30+
EXPOSE 80
31+
32+
CMD ["/entrypoint.sh"]
33+
34+

0 commit comments

Comments
 (0)