From 894b5fa5994a67a2c424fa1e29a8c1ba9101c5e1 Mon Sep 17 00:00:00 2001 From: Daniel Dao Date: Sun, 11 Sep 2016 04:13:27 +0000 Subject: [PATCH] add a dockerfile based on debian jessie Signed-off-by: Daniel Dao --- Dockerfile.jessie | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 Dockerfile.jessie diff --git a/Dockerfile.jessie b/Dockerfile.jessie new file mode 100644 index 000000000..ea37fba1b --- /dev/null +++ b/Dockerfile.jessie @@ -0,0 +1,18 @@ +FROM python:2.7.12 + +WORKDIR /opt/netbox +ENTRYPOINT [ "/docker-entrypoint.sh" ] +VOLUME ["/etc/netbox-nginx/"] + +COPY requirements.txt /opt/netbox/requirements.txt +RUN apt-get update -qq && apt-get install -y libldap2-dev libsasl2-dev libssl-dev && \ + pip install gunicorn==17.5 && \ + pip install django-auth-ldap && \ + pip install -r requirements.txt + +COPY docker/docker-entrypoint.sh /docker-entrypoint.sh +COPY docker/nginx.conf /etc/netbox-nginx/ + +COPY . /opt/netbox +COPY netbox/netbox/configuration.docker.py /opt/netbox/netbox/netbox/configuration.py +COPY docker/gunicorn_config.py /opt/netbox/