From 969237ca3084bb330ae8528f87f18aa9dcb6acd8 Mon Sep 17 00:00:00 2001 From: smacz Date: Mon, 25 Mar 2019 21:28:31 -0400 Subject: [PATCH] Initial commit for docker build --- .dockerignore | 2 ++ Dockerfile | 5 +++-- README.rst | 2 +- 3 files changed, 6 insertions(+), 3 deletions(-) create mode 100644 .dockerignore diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..b07a9a3 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,2 @@ +tests/ +run_test.sh diff --git a/Dockerfile b/Dockerfile index 76ed830..77dd3d6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,7 @@ -FROM ubuntu +FROM ubuntu:16.04 -RUN python setup.py +ADD . . +RUN apt update && apt install -y python3 python3-pip && pip3 install -e . -r requirements.txt && pip3 install pycodestyle passlib coveralls && /usr/bin/python3 setup.py VOLUME /etc/ldapcherry EXPOSE 80 diff --git a/README.rst b/README.rst index 330eb88..cee0891 100644 --- a/README.rst +++ b/README.rst @@ -26,7 +26,7 @@ Nice and simple application to manage users and groups in multiple directory ser :Dev: `LdapCherry source code on GitHub `_ :PyPI: `LdapCherry package on Pypi `_ :License: MIT -:Author: Pierre-Francois Carpentier - copyright © 2016 +:Author: Pierre-Francois Carpentier - copyright 2016 ----