2016-08-06 02:35:42 -04:00
|
|
|
FROM python:2.7-wheezy
|
2016-06-29 16:09:39 +02:00
|
|
|
|
2016-08-06 02:35:42 -04:00
|
|
|
WORKDIR /opt/netbox
|
|
|
|
|
2016-08-21 23:48:27 -04:00
|
|
|
ARG BRANCH=master
|
|
|
|
ARG URL=https://github.com/digitalocean/netbox.git
|
|
|
|
RUN git clone --depth 1 $URL -b $BRANCH . && \
|
2016-11-13 13:29:11 -03:00
|
|
|
apt-get update -qq && apt-get install -y libldap2-dev libsasl2-dev libssl-dev graphviz && \
|
2016-09-08 20:05:32 -04:00
|
|
|
pip install gunicorn==17.5 && \
|
|
|
|
pip install django-auth-ldap && \
|
|
|
|
pip install -r requirements.txt
|
2016-06-29 16:09:39 +02:00
|
|
|
|
|
|
|
ADD docker/docker-entrypoint.sh /docker-entrypoint.sh
|
2016-07-04 10:42:01 +02:00
|
|
|
ADD netbox/netbox/configuration.docker.py /opt/netbox/netbox/netbox/configuration.py
|
2016-06-29 16:09:39 +02:00
|
|
|
|
|
|
|
ENTRYPOINT [ "/docker-entrypoint.sh" ]
|
2016-07-04 10:42:01 +02:00
|
|
|
|
|
|
|
ADD docker/gunicorn_config.py /opt/netbox/
|
|
|
|
ADD docker/nginx.conf /etc/netbox-nginx/
|
|
|
|
VOLUME ["/etc/netbox-nginx/"]
|