Sign inSign up

newdeveloper/rpi-nginx-php7

By newdeveloper

•Updated over 7 years ago

nginx and php7 on ubuntu latest voor rasberry pi

Image
2

10K+

newdeveloper/rpi-nginx-php7 repository overview

Nginx with PHP7.2 for rasberry pi with arm32v7/ubuntu #Dockerfile FROM arm32v7/ubuntu

RUN apt-get update && apt-get -y upgrade RUN apt install tzdata ENV TZ "Europe/Amsterdam" RUN echo "${TZ}" > /etc/timezone
&& dpkg-reconfigure --frontend noninteractive tzdata RUN apt-get install -y nginx php php-fpm php-mysql

EXPOSE 80 COPY run.sh /run.sh COPY default /etc/nginx/sites-available/default RUN chmod a+rx /run.sh CMD ["/bin/bash", "/run.sh"]

#default file server { listen 80 default_server; listen [::]:80 default_server; root /var/www/html; index index.php index.html index.htm index.nginx-debian.html;

server_name _;

location / {
	try_files $uri $uri/ =404;
}


location ~ \.php$ {
	include snippets/fastcgi-php.conf;	
	fastcgi_pass unix:/run/php/php7.0-fpm.sock;
}

}

#run.sh file service php7.0-fpm start nginx -g "daemon off;"

Tag summary

Content type

Image

Digest

Size

87.9 MB

Last updated

over 7 years ago

docker pull newdeveloper/rpi-nginx-php7