mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-28 03:16:25 -06:00
add a dockerfile based on debian jessie
Signed-off-by: Daniel Dao <dqminh89@gmail.com>
This commit is contained in:
parent
0fa4f94364
commit
894b5fa599
18
Dockerfile.jessie
Normal file
18
Dockerfile.jessie
Normal file
@ -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/
|
Loading…
Reference in New Issue
Block a user