AD-webmanager icon indicating copy to clipboard operation
AD-webmanager copied to clipboard

docker image

Open megamaced opened this issue 3 years ago • 0 comments

might save someone a few minutes.... (make sure to put a settings.py file in the same folder as the Dockerfile)

FROM docker.io/ubuntu:20.04

RUN apt-get update

RUN DEBIAN_FRONTEND=noninteractive apt-get install -y \
               python3-pip \
               build-essential \
               python3-dev \
               libldap2-dev \
               libsasl2-dev \
               slapd \
               ldap-utils \
               tox \
               lcov \
               valgrind \
               git

RUN useradd -c "AD-webmanager" -U -s /bin/bash -m -d /srv/ad-webmanager ad-webmanager

USER ad-webmanager

WORKDIR /srv/ad-webmanager

RUN git clone https://github.com/VicentGJ/AD-webmanager.git

RUN cd AD-webmanager && \
       pip install -r requirements.txt

COPY settings.py AD-webmanager/settings.py

RUN mkdir AD-webmanager/logs

EXPOSE 8080

WORKDIR /srv/ad-webmanager/AD-webmanager

CMD ["python3", "ADwebmanager.py"]

megamaced avatar Sep 01 '22 22:09 megamaced