mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-14 09:51:22 -06:00
Revert "Changes to Dockerfile to make the build faster"
This commit is contained in:
parent
63ac4e2c42
commit
041a166217
26
Dockerfile
26
Dockerfile
@ -1,10 +1,24 @@
|
|||||||
FROM python:2.7-wheezy
|
FROM ubuntu:14.04
|
||||||
|
|
||||||
WORKDIR /opt/netbox
|
RUN apt-get update && apt-get install -y \
|
||||||
|
python2.7 \
|
||||||
ADD . /opt/netbox
|
python-dev \
|
||||||
#RUN git clone --depth 1 https://github.com/digitalocean/netbox.git -b master . \
|
git \
|
||||||
RUN pip install -r requirements.txt
|
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
|
||||||
|
|
||||||
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
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
gunicorn==17.5
|
|
||||||
cryptography==1.4
|
cryptography==1.4
|
||||||
Django==1.10
|
Django==1.10
|
||||||
django-debug-toolbar==1.4
|
django-debug-toolbar==1.4
|
||||||
|
Loading…
Reference in New Issue
Block a user