mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
8f34b6b0b9
It was hard to test with the old syntax. It was cloning the "master" branch, so trying to test a development change was difficult. I believe I've fixed it so that the "master" branch and "develop" branch can use the same Dockerfile options. You override which branch it pulls by setting a build-args variable, either via docker-compose or in the docker build options.
18 lines
520 B
Docker
18 lines
520 B
Docker
FROM python:2.7-wheezy
|
|
|
|
WORKDIR /opt/netbox
|
|
|
|
ARG BRANCH=master
|
|
ARG URL=https://github.com/digitalocean/netbox.git
|
|
RUN git clone --depth 1 $URL -b $BRANCH . && \
|
|
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
|
|
|
|
ENTRYPOINT [ "/docker-entrypoint.sh" ]
|
|
|
|
ADD docker/gunicorn_config.py /opt/netbox/
|
|
ADD docker/nginx.conf /etc/netbox-nginx/
|
|
VOLUME ["/etc/netbox-nginx/"]
|