-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
28 lines (21 loc) · 909 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
FROM python:3.11
ENV PYTHONUNBUFFERED 1
RUN mkdir -p /opt
RUN pip install --upgrade pip\
&& pip install poetry
# -------------------------------------------------------------------------------------
# install netbox
# -------------------------------------------------------------------------------------
ARG netbox_ver=v4.1.11
RUN git clone --single-branch --branch ${netbox_ver} https://github.com/netbox-community/netbox.git /opt/netbox/ && \
cd /opt/netbox/ && \
pip install -r /opt/netbox/requirements.txt
# -------------------------------------------------------------------------------------
# install netbox atlas plugin
# -------------------------------------------------------------------------------------
RUN mkdir -p /plugin
WORKDIR /plugin
COPY . /plugin
RUN poetry config virtualenvs.create false \
&& poetry install --no-interaction --no-ansi
WORKDIR /opt/netbox/netbox/