remove random dependency, add unbuffered output to Dockerfile

This commit is contained in:
Joe Gooch 2019-05-06 11:09:03 -04:00
parent 81ec81d4e4
commit 32df042962
2 changed files with 1 additions and 2 deletions

View File

@ -18,4 +18,4 @@ RUN \
EXPOSE 8888 EXPOSE 8888
CMD ["python", "/usr/src/app/nginx-ldap-auth-daemon.py", "--host", "0.0.0.0", "--port", "8888"] CMD ["python", "-u", "/usr/src/app/nginx-ldap-auth-daemon.py", "--host", "0.0.0.0", "--port", "8888"]

View File

@ -6,7 +6,6 @@
# Copyright (C) 2014-2015 Nginx, Inc. # Copyright (C) 2014-2015 Nginx, Inc.
import sys, os, signal, base64, ldap, http.cookies, argparse import sys, os, signal, base64, ldap, http.cookies, argparse
import random
from http.server import HTTPServer, BaseHTTPRequestHandler from http.server import HTTPServer, BaseHTTPRequestHandler
if not hasattr(__builtins__, "basestring"): basestring = (str, bytes) if not hasattr(__builtins__, "basestring"): basestring = (str, bytes)