Switch to Alpine base image
This brings the image size down from 278.3MB to 100.2MBpull/30/head
parent
adacce4ba1
commit
1de5eb7a1d
@ -1,15 +1,15 @@
|
|||||||
[supervisord]
|
[supervisord]
|
||||||
nodaemon=true
|
nodaemon=true
|
||||||
|
|
||||||
[program:php5-fpm]
|
[program:php-fpm]
|
||||||
command=/usr/sbin/php5-fpm --nodaemonize
|
command=/usr/bin/php-fpm --nodaemonize
|
||||||
|
|
||||||
[program:nginx]
|
[program:nginx]
|
||||||
command=/usr/sbin/nginx -g "daemon off;"
|
command=/usr/sbin/nginx
|
||||||
|
|
||||||
[program:ttrss-update-daemon]
|
[program:ttrss-update-daemon]
|
||||||
command=/usr/bin/php /var/www/update_daemon2.php
|
command=/usr/bin/php /var/www/update_daemon2.php
|
||||||
user=www-data
|
user=nobody
|
||||||
stdout_logfile=/tmp/%(program_name)s.stdout
|
stdout_logfile=/tmp/%(program_name)s.stdout
|
||||||
stderr_logfile=/tmp/%(program_name)s.stderr
|
stderr_logfile=/tmp/%(program_name)s.stderr
|
||||||
|
|
||||||
|
@ -1,18 +1,35 @@
|
|||||||
server {
|
daemon off;
|
||||||
listen 80;
|
pid /run/nginx.pid;
|
||||||
root /var/www;
|
worker_processes 1;
|
||||||
|
|
||||||
index index.php index.html;
|
events {
|
||||||
|
worker_connections 1024;
|
||||||
|
}
|
||||||
|
|
||||||
location / {
|
http {
|
||||||
try_files $uri $uri/ =404;
|
include mime.types;
|
||||||
}
|
default_type application/octet-stream;
|
||||||
|
|
||||||
location ~ \.php$ {
|
sendfile on;
|
||||||
fastcgi_split_path_info ^(.+\.php)(/.+)$;
|
keepalive_timeout 65;
|
||||||
fastcgi_pass unix:/var/run/php5-fpm.sock;
|
gzip on;
|
||||||
fastcgi_index index.php;
|
|
||||||
include fastcgi_params;
|
server {
|
||||||
}
|
listen 80;
|
||||||
}
|
root /var/www;
|
||||||
|
|
||||||
|
index index.php index.html;
|
||||||
|
|
||||||
|
location / {
|
||||||
|
try_files $uri $uri/ =404;
|
||||||
|
}
|
||||||
|
|
||||||
|
location ~ \.php$ {
|
||||||
|
fastcgi_split_path_info ^(.+\.php)(/.+)$;
|
||||||
|
fastcgi_pass 127.0.0.1:9000;
|
||||||
|
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
||||||
|
fastcgi_index index.php;
|
||||||
|
include fastcgi_params;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue