Test
This commit is contained in:
parent
f696c2505a
commit
4cbbe1a210
@ -2,7 +2,7 @@ FROM alpine:latest
|
|||||||
|
|
||||||
# Nginx package is available in the Alpine Linux repositories. To install it run:
|
# Nginx package is available in the Alpine Linux repositories. To install it run:
|
||||||
RUN apk update && \
|
RUN apk update && \
|
||||||
apk add nginx php-fpm
|
apk add nginx php-fpm81
|
||||||
|
|
||||||
# Creating new user and group 'www' for nginx
|
# Creating new user and group 'www' for nginx
|
||||||
RUN adduser -D -g 'www' www
|
RUN adduser -D -g 'www' www
|
||||||
@ -14,4 +14,7 @@ RUN mkdir /www && \
|
|||||||
|
|
||||||
COPY nginx.conf /etc/nginx/nginx.conf
|
COPY nginx.conf /etc/nginx/nginx.conf
|
||||||
|
|
||||||
CMD ["nginx"]
|
COPY ../ /www
|
||||||
|
|
||||||
|
USER www
|
||||||
|
CMD ["nginx && php-fpm81 && sleep infinity"]
|
@ -1,7 +1,8 @@
|
|||||||
user www;
|
user www;
|
||||||
worker_processes 1;
|
worker_processes 1;
|
||||||
|
|
||||||
error_log /var/log/nginx/error.log warn;
|
#error_log /var/log/nginx/error.log warn;
|
||||||
|
error_log /dev/null warn;
|
||||||
pid /var/run/nginx/nginx.pid;
|
pid /var/run/nginx/nginx.pid;
|
||||||
|
|
||||||
events {
|
events {
|
||||||
@ -12,11 +13,11 @@ http {
|
|||||||
include /etc/nginx/mime.types;
|
include /etc/nginx/mime.types;
|
||||||
default_type application/octet-stream;
|
default_type application/octet-stream;
|
||||||
sendfile on;
|
sendfile on;
|
||||||
access_log /var/log/nginx/access.log;
|
access_log off;
|
||||||
keepalive_timeout 3000;
|
keepalive_timeout 3000;
|
||||||
server {
|
server {
|
||||||
listen 8080;
|
listen 8080;
|
||||||
root /www;
|
root /www/public;
|
||||||
index index.html index.htm index.php;
|
index index.html index.htm index.php;
|
||||||
server_name localhost;
|
server_name localhost;
|
||||||
client_max_body_size 32m;
|
client_max_body_size 32m;
|
||||||
|
Loading…
Reference in New Issue
Block a user