-
-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathDockerfile
More file actions
22 lines (16 loc) · 652 Bytes
/
Copy pathDockerfile
File metadata and controls
22 lines (16 loc) · 652 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
FROM python:3.12-slim
ARG NETBOX_VERSION=develop
ENV PYTHONUNBUFFERED 1
ENV PYTHONDONTWRITEBYTECODE 1
RUN apt-get update \
&& apt-get install -y --no-install-recommends git postgresql-client libpq-dev gcc build-essential \
&& pip install --upgrade pip
# Install NetBox
RUN mkdir -p /opt/netbox \
&& git clone --single-branch --branch=${NETBOX_VERSION} https://github.com/netbox-community/netbox.git /opt/netbox/ \
&& pip install -r /opt/netbox/requirements.txt
# Install Validity
COPY . /plugin/validity
COPY ./development/start.sh /opt/netbox/netbox/
RUN pip install --editable /plugin/validity[dev]
WORKDIR /opt/netbox/netbox/