docker run -v /etc/nginxnginx.conf:/etc/nginx/nginx.conf -v /content:/app -p 8888:8888 -d nginx-nonroot:latest
nginx.conf file referance (list dir)
worker_processes 1;
pid /tmp/nginx.pid;
events {
worker_connections 1024;
}
http {
server {
listen 8888;
port_in_redirect off;
server_name_in_redirect off;
root /app;
server_name _;
location / {
autoindex on;
client_body_buffer_size 0;
client_max_body_size 0;
add_header Cache-Control "max-age=0, no-cache, no-store, must-revalidate";
add_header Pragma "no-cache";
access_log /dev/null;
error_log /dev/fd/0;
}
}
}
Content type
Image
Digest
sha256:0230b3ac6…
Size
84.3 MB
Last updated
almost 4 years ago
docker pull iscream17/nginx-nonroot:0.0.1