proxy-bypass-geoblock / Dockerfile
Nodiw52992's picture
Update Dockerfile
9ce23cd verified
raw
history blame contribute delete
513 Bytes
FROM nginx:latest
RUN rm /etc/nginx/conf.d/default.conf
COPY nginx.conf /etc/nginx/conf.d
RUN adduser --system --no-create-home --disabled-login proxyuser
RUN mkdir -p \
/var/cache/nginx/client_temp \
/var/cache/nginx/proxy_temp \
/var/cache/nginx/fastcgi_temp \
/var/cache/nginx/uwsgi_temp \
/var/cache/nginx/scgi_temp \
&& chown -R proxyuser:nogroup /var/cache/nginx \
&& chmod -R 755 /var/cache/nginx
USER proxyuser
EXPOSE 7860
CMD ["nginx", "-g", "daemon off; pid /tmp/nginx.pid;"]