Update Dockerfile for python 3
This commit is contained in:
parent
9d8e4ab5db
commit
81ec81d4e4
|
|
@ -1,4 +1,4 @@
|
|||
FROM python:2-alpine
|
||||
FROM python:3-alpine
|
||||
|
||||
COPY nginx-ldap-auth-daemon.py /usr/src/app/
|
||||
|
||||
|
|
@ -11,6 +11,11 @@ RUN \
|
|||
pip install python-ldap && \
|
||||
apk del build-dependencies
|
||||
|
||||
# If you need to add your own certs, copy them in here and uncomment
|
||||
#RUN apk add ca-certificates && rm -rf /var/cache/apk/*
|
||||
#COPY ./certs/*.pem /usr/local/share/ca-certificates/
|
||||
#RUN update-ca-certificates
|
||||
|
||||
EXPOSE 8888
|
||||
|
||||
CMD ["python", "/usr/src/app/nginx-ldap-auth-daemon.py", "--host", "0.0.0.0", "--port", "8888"]
|
||||
|
|
|
|||
Loading…
Reference in New Issue