-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
18 lines (15 loc) · 722 Bytes
/
Dockerfile
File metadata and controls
18 lines (15 loc) · 722 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
FROM nginx
MAINTAINER Erwan Grooters
RUN echo "deb http://packages.dotdeb.org jessie all" > /etc/apt/sources.list.d/dotdeb.list
COPY dotdeb.gpg /tmp/
RUN apt-key add /tmp/dotdeb.gpg
RUN apt-get update && apt-get install -y php7.0 php7.0-fpm php7.0-curl php7.0-gd php7.0-intl php7.0-json php7.0-pgsql php7.0-phpdbg php7.0-redis php7.0-mysql php7.0-cli
RUN sed -i "s/user *nginx/user nginx www-data/g" /etc/nginx/nginx.conf
COPY nginx_conf/* /etc/nginx/conf.d/
EXPOSE 80 443
COPY info.php /usr/share/nginx/html/
RUN rm -rf /tmp/*
ADD https://getcomposer.org/composer.phar /usr/bin/composer
RUN chmod +x /usr/bin/composer
WORKDIR /usr/share/nginx/html/
CMD /bin/bash -c "service php7.0-fpm start; nginx -g 'daemon off;'"