This commit is contained in:
Robert Drake 2016-08-16 21:06:43 +00:00 committed by GitHub
commit 357f2148ec
2 changed files with 6 additions and 20 deletions

View File

@ -1,24 +1,9 @@
FROM ubuntu:14.04
FROM python:2.7-wheezy
RUN apt-get update && apt-get install -y \
python2.7 \
python-dev \
git \
python-pip \
libxml2-dev \
libxslt1-dev \
libffi-dev \
graphviz \
libpq-dev \
build-essential \
gunicorn \
--no-install-recommends \
&& rm -rf /var/lib/apt/lists/* \
&& mkdir -p /opt/netbox \
&& cd /opt/netbox \
&& git clone --depth 1 https://github.com/digitalocean/netbox.git -b master . \
&& pip install -r requirements.txt \
&& apt-get purge -y --auto-remove git build-essential
WORKDIR /opt/netbox
RUN git clone --depth 1 https://github.com/digitalocean/netbox.git -b master . \
&& pip install -r requirements.txt
ADD docker/docker-entrypoint.sh /docker-entrypoint.sh
ADD netbox/netbox/configuration.docker.py /opt/netbox/netbox/netbox/configuration.py

View File

@ -1,3 +1,4 @@
gunicorn==17.5
cryptography==1.4
Django==1.10
django-debug-toolbar==1.4