diff --git a/docker-compose.yml b/docker-compose.yml index f0c3ca2..ed08ffd 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -14,7 +14,7 @@ services: inventree-server: container_name: inventree-server - image: inventree/inventree:latest + build: ./inventree-ldap expose: - 8000 depends_on: @@ -37,7 +37,7 @@ services: # Background worker process handles long-running or periodic tasks inventree-worker: container_name: inventree-worker - image: inventree/inventree:latest + build: ./inventree-ldap command: invoke worker depends_on: - inventree-db diff --git a/inventree-ldap/Dockerfile b/inventree-ldap/Dockerfile new file mode 100644 index 0000000..83fb937 --- /dev/null +++ b/inventree-ldap/Dockerfile @@ -0,0 +1,5 @@ +FROM inventree/inventree:stable + +RUN apt-get update && apt-get install -y build-essential libldap2-dev libsasl2-dev + +RUN pip3 install --no-cache-dir --disable-pip-version-check python-ldap django-auth-ldap