Skip to content
Snippets Groups Projects
Commit f3ce1e16 authored by Antoine  Millet's avatar Antoine Millet
Browse files

Also fixed run as non root for "prod" nginx static server

parent 89e49005
No related branches found
No related tags found
No related merge requests found
Pipeline #43114 passed
FROM nginx:1.17.6-alpine
FROM nginxinc/nginx-unprivileged:1.17.6-alpine
COPY nginx.conf /etc/nginx/nginx.conf
EXPOSE 80
EXPOSE 8080
CMD ["nginx", "-g", "daemon off;"]
pid /tmp/nginx.pid;
events {
worker_connections 1024;
}
http {
proxy_temp_path /tmp/proxy_temp;
client_body_temp_path /tmp/client_temp;
fastcgi_temp_path /tmp/fastcgi_temp;
uwsgi_temp_path /tmp/uwsgi_temp;
scgi_temp_path /tmp/scgi_temp;
include /etc/nginx/mime.types;
client_max_body_size 100m;
server {
listen 80;
listen 8080;
root /usr/src/app/;
location /static/ {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment