mirror of
https://github.com/nginxinc/nginx-ldap-auth.git
synced 2026-10-21 01:31:33 +02:00
Added Dockerfile for nginx-ldap-auth-daemon.py.
This commit is contained in:
+16
@@ -0,0 +1,16 @@
|
||||
FROM python:2-alpine
|
||||
|
||||
COPY nginx-ldap-auth-daemon.py /usr/src/app/
|
||||
|
||||
WORKDIR /usr/src/app/
|
||||
|
||||
# Install required software
|
||||
RUN \
|
||||
apk --no-cache add openldap-dev && \
|
||||
apk --no-cache add --virtual build-dependencies build-base && \
|
||||
pip install python-ldap && \
|
||||
apk del build-dependencies
|
||||
|
||||
EXPOSE 8888
|
||||
|
||||
CMD ["python", "/usr/src/app/nginx-ldap-auth-daemon.py", "--host", "0.0.0.0", "--port", "8888"]
|
||||
Reference in New Issue
Block a user