File tree 2 files changed +19
-7
lines changed
2 files changed +19
-7
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ LABEL maintainer="Hyperion Project <admin@hyperion-project.org>" \
23
23
ARG DEBIAN_FRONTEND=noninteractive
24
24
25
25
# update
26
- RUN apt-get update
26
+ RUN apt-get update && apt-get -y upgrade
27
27
28
28
# install qt5 or qt6 (qt6 is not available on debian buster/bullseye)
29
29
RUN if [ "$SUITE" = "bookworm" ] && [ "$QT_VERSION" = "6" ]; then \
@@ -74,7 +74,13 @@ RUN mkdir -p /tmp/cmake; \
74
74
RUN cmake --version
75
75
76
76
# download qemu and set exec flag
77
- RUN curl -kL https://github.com/balena-io/qemu/releases/download/v7.0.0%2Bbalena1/qemu-7.0.0.balena1-arm.tar.gz | tar zxvf - -C . --strip-components 1 && mv qemu-arm-static /usr/bin/qemu-static && chmod +x /usr/bin/qemu-static
77
+ RUN curl -kL https://github.com/balena-io/qemu/releases/download/v7.0.0%2Bbalena1/qemu-7.0.0.balena1-arm.tar.gz | tar zxvf - -C . --strip-components 1 && mv qemu-arm-static /usr/bin/qemu-static
78
+
79
+ # set qemu exec flag
80
+ RUN chmod +x /usr/bin/qemu-static
81
+
82
+ # cleanup
83
+ RUN apt-get clean -q -y && apt-get autoremove -y && rm -rf /var/lib/apt/lists/*
78
84
79
85
# set entrypoint
80
86
ENTRYPOINT [ "/usr/bin/qemu-static" ]
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ ENV DEBEMAIL="admin@hyperion-project.org"
29
29
ARG DEBIAN_FRONTEND=noninteractive
30
30
31
31
# update
32
- RUN apt-get update
32
+ RUN apt-get update && apt-get -y upgrade
33
33
34
34
# install qt5 or qt6 (qt6 is not available on ubuntu focal and debian buster)
35
35
# on debian bullseye add backports to install qt6
112
112
# Show cmake version
113
113
RUN cmake --version
114
114
115
- # download qemu and set exec flag
115
+ # download qemu
116
116
RUN if [ "$TARGETPLATFORM" = "linux/arm64" ]; then \
117
- curl -kL https://github.com/balena-io/qemu/releases/download/v7.0.0%2Bbalena1/qemu-7.0.0.balena1-aarch64.tar.gz | tar zxvf - -C . --strip-components 1 && mv qemu-aarch64-static /usr/bin/qemu-static && chmod +x /usr/bin/qemu-static ; \
117
+ curl -kL https://github.com/balena-io/qemu/releases/download/v7.0.0%2Bbalena1/qemu-7.0.0.balena1-aarch64.tar.gz | tar zxvf - -C . --strip-components 1 && mv qemu-aarch64-static /usr/bin/qemu-static; \
118
118
elif [ "$TARGETPLATFORM" = "linux/arm/v6" ] || [ "$TARGETPLATFORM" = "linux/arm/v7" ]; then \
119
- curl -kL https://github.com/balena-io/qemu/releases/download/v7.0.0%2Bbalena1/qemu-7.0.0.balena1-arm.tar.gz | tar zxvf - -C . --strip-components 1 && mv qemu-arm-static /usr/bin/qemu-static && chmod +x /usr/bin/qemu-static ; \
119
+ curl -kL https://github.com/balena-io/qemu/releases/download/v7.0.0%2Bbalena1/qemu-7.0.0.balena1-arm.tar.gz | tar zxvf - -C . --strip-components 1 && mv qemu-arm-static /usr/bin/qemu-static; \
120
120
else \
121
- printf '#!/bin/bash\nexec "$@"' > /usr/bin/qemu-static && chmod +x /usr/bin/qemu-static ; \
121
+ printf '#!/bin/bash\nexec "$@"' > /usr/bin/qemu-static; \
122
122
fi
123
123
124
+ # set qemu exec flag
125
+ RUN chmod +x /usr/bin/qemu-static
126
+
127
+ # cleanup
128
+ RUN apt-get clean -q -y && apt-get autoremove -y && rm -rf /var/lib/apt/lists/*
129
+
124
130
# set entrypoint
125
131
ENTRYPOINT [ "/usr/bin/qemu-static" ]
You can’t perform that action at this time.
0 commit comments