mirror of
https://github.com/vimagick/dockerfiles.git
synced 2024-12-25 02:04:06 +02:00
update
This commit is contained in:
parent
b89bad9689
commit
a7ca7ef2e3
@ -24,6 +24,7 @@ RUN apk add -U ca-certificates \
|
|||||||
&& cd upload \
|
&& cd upload \
|
||||||
&& php composer.phar self-update \
|
&& php composer.phar self-update \
|
||||||
&& php composer.phar install \
|
&& php composer.phar install \
|
||||||
|
&& chown -R nobody:nobody public \
|
||||||
&& cd config/autoload \
|
&& cd config/autoload \
|
||||||
&& cp database.local.php.dist database.local.php \
|
&& cp database.local.php.dist database.local.php \
|
||||||
&& cp delivery.local.php.dist delivery.local.php \
|
&& cp delivery.local.php.dist delivery.local.php \
|
||||||
@ -31,7 +32,6 @@ RUN apk add -U ca-certificates \
|
|||||||
&& cp rtb.config.local.php.dist rtb.config.local.php \
|
&& cp rtb.config.local.php.dist rtb.config.local.php \
|
||||||
&& sed -i -e "s/'pass' => ''/'pass' => 'root'/" \
|
&& sed -i -e "s/'pass' => ''/'pass' => 'root'/" \
|
||||||
-e "s/'host' => 'localhost'/'host' => 'mysql'/" database.local.php \
|
-e "s/'host' => 'localhost'/'host' => 'mysql'/" database.local.php \
|
||||||
&& chown -R nobody:nobody . \
|
|
||||||
&& apk del git \
|
&& apk del git \
|
||||||
&& rm -rf /var/cache/apk/*
|
&& rm -rf /var/cache/apk/*
|
||||||
|
|
||||||
|
@ -1,26 +1,25 @@
|
|||||||
worker_processes 4;
|
user nobody;
|
||||||
|
worker_processes 4;
|
||||||
|
|
||||||
events {
|
events {
|
||||||
worker_connections 1024;
|
worker_connections 1024;
|
||||||
}
|
}
|
||||||
|
|
||||||
http {
|
http {
|
||||||
include mime.types;
|
include mime.types;
|
||||||
default_type application/octet-stream;
|
default_type application/octet-stream;
|
||||||
sendfile on;
|
sendfile on;
|
||||||
keepalive_timeout 65;
|
keepalive_timeout 65;
|
||||||
|
|
||||||
server {
|
server {
|
||||||
listen 80;
|
listen 80;
|
||||||
server_name _;
|
server_name _;
|
||||||
|
root /var/www/html/upload/public;
|
||||||
|
try_files $uri @php_index;
|
||||||
|
|
||||||
root /var/www/html/upload/public/;
|
location @php_index {
|
||||||
index index.php;
|
|
||||||
|
|
||||||
location ~ \.php$ {
|
|
||||||
include fastcgi_params;
|
include fastcgi_params;
|
||||||
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
fastcgi_param SCRIPT_FILENAME $document_root/index.php;
|
||||||
fastcgi_param REDIRECT_STATUS 200;
|
|
||||||
fastcgi_pass 127.0.0.1:9000;
|
fastcgi_pass 127.0.0.1:9000;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user