Dockerfile 648 B

1234567891011121314151617181920
  1. FROM python:2.7-wheezy
  2. WORKDIR /opt/netbox
  3. ARG BRANCH=master
  4. ARG URL=https://github.com/digitalocean/netbox.git
  5. RUN git clone --depth 1 $URL -b $BRANCH . && \
  6. apt-get update -qq && apt-get install -y libldap2-dev libsasl2-dev libssl-dev && \
  7. pip install gunicorn==17.5 && \
  8. pip install django-auth-ldap && \
  9. pip install -r requirements.txt
  10. ADD docker/docker-entrypoint.sh /docker-entrypoint.sh
  11. ADD netbox/netbox/configuration.docker.py /opt/netbox/netbox/netbox/configuration.py
  12. ENTRYPOINT [ "/docker-entrypoint.sh" ]
  13. ADD docker/gunicorn_config.py /opt/netbox/
  14. ADD docker/nginx.conf /etc/netbox-nginx/
  15. VOLUME ["/etc/netbox-nginx/"]