1- FROM debian:bookworm -slim AS labgrid-base
2- ARG VERSION
1+ FROM debian:trixie -slim AS labgrid-base
2+ ARG VERSION=0.0.0
33
44LABEL maintainer="eha@deif.com"
55
66ENV DEBIAN_FRONTEND=noninteractive
77
88COPY ./ /opt/labgrid/
99
10- RUN set -e ;\
11- apt update -q=2 ;\
12- apt install -q=2 --yes --no-install-recommends python3 python3-dev python3-pip python3-setuptools git build-essential ;\
13- pip3 install --break-system-packages -U pip;\
14- apt clean ;\
15- rm -rf /var/lib/apt/lists/* ;\
16- cd /opt/labgrid ;\
17- SETUPTOOLS_SCM_PRETEND_VERSION="$VERSION" pip3 install --break-system-packages --no-cache-dir .
10+ RUN apt update -q=2 && \
11+ apt install -q=2 --yes --no-install-recommends python3 python3-dev python3-pip python3-setuptools git build-essential && \
12+ rm -rf /var/lib/apt/lists/* && \
13+ pip3 config --site set global.break-system-packages true && \
14+ pip3 config --site set global.root-user-action ignore && \
15+ cd /opt/labgrid && \
16+ SETUPTOOLS_SCM_PRETEND_VERSION="$VERSION" pip3 install --no-cache-dir .
1817
1918#
2019# Client
2120#
2221FROM labgrid-base AS labgrid-client
2322ARG VERSION
2423
25- RUN set -e ;\
26- pip3 install --break-system-packages yq ;\
27- apt update -q=2 ;\
28- apt install -q=2 --yes --no-install-recommends microcom openssh-client rsync jq qemu-system qemu-utils ;\
29- apt clean ;\
24+ RUN pip3 install yq && \
25+ apt update -q=2 && \
26+ apt install -q=2 --yes --no-install-recommends microcom openssh-client rsync jq qemu-system qemu-utils && \
3027 rm -rf /var/lib/apt/lists/*
3128
3229CMD ["/bin/bash" ]
@@ -53,10 +50,8 @@ ARG VERSION
5350
5451COPY dockerfiles/exporter/entrypoint.sh /entrypoint.sh
5552
56- RUN set -e ;\
57- apt update -q=2 ;\
58- apt install -q=2 --yes --no-install-recommends ser2net ;\
59- apt clean ;\
53+ RUN apt update -q=2 && \
54+ apt install -q=2 --yes --no-install-recommends ser2net && \
6055 rm -rf /var/lib/apt/lists/*
6156
6257VOLUME /opt/conf
0 commit comments