File tree Expand file tree Collapse file tree 2 files changed +34
-0
lines changed Expand file tree Collapse file tree 2 files changed +34
-0
lines changed File renamed without changes.
Original file line number Diff line number Diff line change 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+
You can’t perform that action at this time.
0 commit comments