Skip to content

Commit c6162de

Browse files
authored
Update Dockerfile
Change-type: patch Signed-off-by: Alan Boris <[email protected]>
1 parent 7cdcb7f commit c6162de

File tree

1 file changed

+32
-8
lines changed

1 file changed

+32
-8
lines changed

jetson-xavier-agx/Dockerfile

Lines changed: 32 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,35 @@
1-
FROM balenalib/jetson-xavier-ubuntu:bionic
1+
FROM ubuntu:bionic-20230530
22

33
# Prevent apt-get prompting for input
44
ENV DEBIAN_FRONTEND noninteractive
55

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
32+
633
# Update to 32.5 repository, only if base image uses an older one:
734
RUN sed -i 's/r32.6 main/r32.7 main/g' /etc/apt/sources.list.d/nvidia.list
835

@@ -51,12 +78,9 @@ RUN echo "#!/bin/bash" > /etc/X11/xinit/xserverrc \
5178
##
5279
## Optional: Sample CUDA Clock sample run in webterminal:
5380
## apt-get install nvidia-l4t-cuda nvidia-cuda cuda-samples-10-2 && cd /usr/local/cuda-10.2/samples/0_Simple/clock/ && make && ./clock
54-
## Output:
55-
## CUDA Clock sample
56-
## GPU Device 0: "Xavier" with compute capability 7.2
57-
##
58-
## Average clocks/block = 3171.421875
5981

60-
# Start XFCE desktop
61-
CMD ["startx"]
82+
COPY entry.sh /usr/bin/entry.sh
83+
84+
# Start entry script
85+
CMD ["bash", "/usr/bin/entry.sh"]
6286

0 commit comments

Comments
 (0)