mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-19 09:53:34 -06:00
Merge pull request #489 from rfdrake/develop
Changes to Dockerfile to make the build faster
This commit is contained in:
commit
fa79014585
26
Dockerfile
26
Dockerfile
@ -1,24 +1,10 @@
|
|||||||
FROM ubuntu:14.04
|
FROM python:2.7-wheezy
|
||||||
|
|
||||||
RUN apt-get update && apt-get install -y \
|
WORKDIR /opt/netbox
|
||||||
python2.7 \
|
|
||||||
python-dev \
|
ADD . /opt/netbox
|
||||||
git \
|
RUN git clone --depth 1 https://github.com/digitalocean/netbox.git -b master . \
|
||||||
python-pip \
|
RUN pip install gunicorn==17.5 && pip install -r requirements.txt
|
||||||
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
|
|
||||||
|
|
||||||
ADD docker/docker-entrypoint.sh /docker-entrypoint.sh
|
ADD docker/docker-entrypoint.sh /docker-entrypoint.sh
|
||||||
ADD netbox/netbox/configuration.docker.py /opt/netbox/netbox/netbox/configuration.py
|
ADD netbox/netbox/configuration.docker.py /opt/netbox/netbox/netbox/configuration.py
|
||||||
|
Loading…
Reference in New Issue
Block a user