Merge branch 'improved_build_speed' of https://github.com/rje6459/netbox-docker

This commit is contained in:
Christian Mäder 2019-06-12 17:45:40 +02:00
commit a5537b18a4
1 changed files with 3 additions and 0 deletions

View File

@ -36,6 +36,9 @@ ARG REQUIREMENTS_URL=https://raw.githubusercontent.com/digitalocean/netbox/$BRAN
ADD ${REQUIREMENTS_URL} requirements.txt
RUN pip install -r requirements.txt
ARG REF_URL=https://api.github.com/repos/digitalocean/netbox/contents?ref=$BRANCH
ADD ${REF_URL} version.json
ARG URL=https://github.com/digitalocean/netbox/archive/$BRANCH.tar.gz
RUN wget -q -O - "${URL}" | tar xz \
&& mv netbox* netbox