Skip to content

Commit

Permalink
Merge pull request netbox-community#489 from rfdrake/develop
Browse files Browse the repository at this point in the history
Changes to Dockerfile to make the build faster
  • Loading branch information
jeremystretch authored Aug 19, 2016
2 parents f4115dc + 3d81cd3 commit 5b92a01
Showing 1 changed file with 6 additions and 20 deletions.
26 changes: 6 additions & 20 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,24 +1,10 @@
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

ADD . /opt/netbox
RUN git clone --depth 1 https://github.com/digitalocean/netbox.git -b master . \
RUN pip install gunicorn==17.5 && 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
Expand Down

0 comments on commit 5b92a01

Please sign in to comment.