-
Notifications
You must be signed in to change notification settings - Fork 17
/
Dockerfile
33 lines (26 loc) · 1.65 KB
/
Dockerfile
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
FROM balenalib/amd64-ubuntu:focal-run-20221210
WORKDIR /usr/src/app/jetson-flash
ARG DEBIAN_FRONTEND=noninteractive
RUN curl -fsSL https://deb.nodesource.com/setup_18.x | sudo -E bash - && \
apt-get -yqq install python2 \
python3 \
python3-pip \
usbutils \
lbzip2 \
git \
wget \
unzip \
e2fsprogs \
dosfstools \
libxml2-utils \
nodejs \
xxd \
lz4 && \
update-alternatives --install /usr/bin/python python /usr/bin/python2 1 && \
pip3 install pyyaml
ARG bsp_url
ARG device_type
COPY . /usr/src/app/jetson-flash
RUN npm install
RUN wget "$bsp_url" -O "/tmp/Linux_for_Tegra.tbz2" && tar -xvf "/tmp/Linux_for_Tegra.tbz2" -C "/tmp/" && rm /tmp/Linux_for_Tegra.tbz2
CMD ["./run_http_server.sh"]