diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..8074978 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,7 @@ +Dockerfile +.* + +LICENSE + +*.adoc +doc diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..54630f9 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,11 @@ +FROM python:3.6.2-alpine3.6 + +WORKDIR /opt/ldap-passwd-webui + +COPY ./ ./ + +RUN pip install -r requirements.txt + +ENTRYPOINT ["waitress-serve", "app:application"] + +EXPOSE 8080 diff --git a/requirements.txt b/requirements.txt index 6f846bb..9fe3afd 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,4 @@ bottle >= 0.12.8 ldap3 >= 2.0, < 3.0 -configparser; python_version < '3.3' +waitress >= 1.0 +configparser