forked from srl-labs/vrnetlab
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvrnetlab-base.dockerfile
More file actions
39 lines (33 loc) · 853 Bytes
/
vrnetlab-base.dockerfile
File metadata and controls
39 lines (33 loc) · 853 Bytes
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
29
30
31
32
33
34
35
36
37
38
39
FROM public.ecr.aws/docker/library/debian:bookworm-slim
LABEL org.opencontainers.image.authors="roman@dodin.dev"
COPY --from=ghcr.io/astral-sh/uv:0.5.18 /uv /uvx /bin/
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update -qy \
&& apt-get install -y --no-install-recommends \
ca-certificates \
bridge-utils \
iproute2 \
socat \
qemu-kvm \
qemu-utils \
tcpdump \
tftpd-hpa \
ssh \
inetutils-ping \
dnsutils \
iptables \
nftables \
telnet \
git \
dosfstools \
genisoimage \
ovmf \
&& rm -rf /var/lib/apt/lists/*
# copying the uv project
COPY pyproject.toml /pyproject.toml
COPY uv.lock /uv.lock
RUN /bin/uv sync --frozen
# copy core vrnetlab scripts
COPY ./common/healthcheck.py ./common/vrnetlab.py /
HEALTHCHECK CMD ["uv", "run", "/healthcheck.py"]
ENTRYPOINT ["uv", "run", "/launch.py"]