Skip to content

Commit be3b6c3

Browse files
authored
Nano: replace balenalib base image
Change-type: patch Signed-off-by: Alan Boris <alan@balena.io>
1 parent e4d60cc commit be3b6c3

File tree

1 file changed

+32
-3
lines changed

1 file changed

+32
-3
lines changed

jetson-nano/Dockerfile

Lines changed: 32 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,34 @@
1-
FROM balenalib/jetson-nano-ubuntu:bionic
1+
FROM ubuntu:bionic-20230530
22

33
# Prevent apt-get prompting for input
44
ENV DEBIAN_FRONTEND noninteractive
5+
6+
# From balenalib base:
7+
RUN apt-get update && apt-get install -y --no-install-recommends \
8+
less \
9+
kmod \
10+
nano \
11+
net-tools \
12+
sudo \
13+
ca-certificates \
14+
gnupg \
15+
dirmngr \
16+
inetutils-ping \
17+
netbase \
18+
curl \
19+
udev \
20+
ifupdown \
21+
i2c-tools \
22+
usbutils \
23+
$( \
24+
if apt-cache show 'iproute' 2>/dev/null | grep -q '^Version:'; then \
25+
echo 'iproute'; \
26+
else \
27+
echo 'iproute2'; \
28+
fi \
29+
) \
30+
&& rm -rf /var/lib/apt/lists/* \
31+
&& c_rehash
532

633
# Update to 32.7 repository in case the base image is using 32.6
734
RUN sed -i 's/r32.6 main/r32.7 main/g' /etc/apt/sources.list.d/nvidia.list
@@ -55,5 +82,7 @@ RUN echo "#!/bin/bash" > /etc/X11/xinit/xserverrc \
5582
## GPU Device 0: "Maxwell" with compute capability 5.3
5683
## Average clocks/block = 3294.203125
5784

58-
# Start XFCE desktop
59-
CMD ["startx"]
85+
COPY entry.sh /usr/bin/entry.sh
86+
87+
# Start entry script
88+
CMD ["bash", "/usr/bin/entry.sh"]

0 commit comments

Comments
 (0)