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]
|
||||
nodaemon=true
|
||||
|
||||
[program:php5-fpm]
|
||||
command=/usr/sbin/php5-fpm --nodaemonize
|
||||
[program:php-fpm]
|
||||
command=/usr/bin/php-fpm --nodaemonize
|
||||
|
||||
[program:nginx]
|
||||
command=/usr/sbin/nginx -g "daemon off;"
|
||||
command=/usr/sbin/nginx
|
||||
|
||||
[program:ttrss-update-daemon]
|
||||
command=/usr/bin/php /var/www/update_daemon2.php
|
||||
user=www-data
|
||||
user=nobody
|
||||
stdout_logfile=/tmp/%(program_name)s.stdout
|
||||
stderr_logfile=/tmp/%(program_name)s.stderr
|
||||
|
||||
|
@ -1,18 +1,35 @@
|
||||
server {
|
||||
listen 80;
|
||||
root /var/www;
|
||||
daemon off;
|
||||
pid /run/nginx.pid;
|
||||
worker_processes 1;
|
||||
|
||||
index index.php index.html;
|
||||
events {
|
||||
worker_connections 1024;
|
||||
}
|
||||
|
||||
location / {
|
||||
try_files $uri $uri/ =404;
|
||||
}
|
||||
http {
|
||||
include mime.types;
|
||||
default_type application/octet-stream;
|
||||
|
||||
location ~ \.php$ {
|
||||
fastcgi_split_path_info ^(.+\.php)(/.+)$;
|
||||
fastcgi_pass unix:/var/run/php5-fpm.sock;
|
||||
fastcgi_index index.php;
|
||||
include fastcgi_params;
|
||||
}
|
||||
}
|
||||
sendfile on;
|
||||
keepalive_timeout 65;
|
||||
gzip on;
|
||||
|
||||
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