ADD file:e2398d0bf516084b2b37ba1bb76b86d56e66999831df692461679fbd6a5d8eb6 in / |
CMD ["bash"] |
WORKDIR /root/ |
SHELL [/bin/bash -c] |
RUN /bin/bash -c apt update && apt upgrade -y # buildkit |
ENV LANG=en_US.UTF-8 |
ENV LANGUAGE=en_US:en |
ENV LC_ALL=en_US.UTF-8 |
RUN /bin/bash -c apt install python-is-python3 git ca-certificates lsb-release apt-transport-https wget curl nano vim locales -y && apt auto-remove -y && apt clean -y # buildkit |
RUN /bin/bash -c sed -i '/en_US.UTF-8/s/^# //g' /etc/locale.gen && locale-gen # buildkit |
RUN /bin/bash -c apt install python3-pip -y # buildkit |
RUN /bin/bash -c git clone https://github.com/netbox-community/netbox.git /opt/netbox # buildkit |
WORKDIR /opt/netbox |
RUN /bin/bash -c pip install -r requirements.txt && apt-get remove -y git python3-dev build-essential libssl-dev libpq-dev && apt-get autoremove -y # buildkit |
WORKDIR /opt/netbox/netbox |
CMD ["python" "manage.py" "runserver" "0.0.0.0:8000"] |