-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
25 lines (21 loc) · 1.12 KB
/
Dockerfile
File metadata and controls
25 lines (21 loc) · 1.12 KB
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
# ─────────────────────────────────────────────────────────────────────────────
# NSO custom development image
# Base image is specified in .env as NSO_BASE
# Layers added:
# 1. Python libraries from requirements.txt
# 2. NED artifacts declared in nso-lab-topology.yaml
# ─────────────────────────────────────────────────────────────────────────────
ARG NSO_BASE
FROM ${NSO_BASE}
# Ensure we are running as root
USER root
# Python dependencies
COPY requirements.txt /tmp/requirements.txt
RUN pip3 install --no-cache-dir -r /tmp/requirements.txt \
&& rm -f /tmp/requirements.txt
# NED artifacts
COPY artifacts.yaml /tmp/artifacts.yaml
COPY scripts/install-artifacts.sh /tmp/install-artifacts.sh
RUN chmod +x /tmp/install-artifacts.sh \
&& /tmp/install-artifacts.sh \
&& rm -f /tmp/artifacts.yaml /tmp/install-artifacts.sh