diff --git a/Dockerfile b/Dockerfile index d7226dc..612aecd 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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"]