Public Repository

Last pushed: a year ago
Short Description
nginx and php7 on ubuntu latest voor rasberry pi
Full Description

Nginx with PHP7 for rasberry pi with armv7/armhf-ubuntu

#Dockerfile
FROM armv7/armhf-ubuntu

RUN apt-get update && apt-get -y upgrade
RUN apt-get install -y nginx php7.0 php7.0-fpm php7.0-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;"

Docker Pull Command
Owner
newdeveloper