-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
33 lines (28 loc) · 1003 Bytes
/
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
ARG VERSION=20.04
FROM ubuntu:$VERSION
ARG DEBIAN_FRONTEND=noninteractive
ARG TZ=America/Los_Angeles
RUN <<EOF bash
apt update -y
apt upgrade -y
# So that we don't get interactive messages
echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections
# Install tzdata
apt install -y tzdata
ln -fs /usr/share/zoneinfo/$TZ etc/localtime
dpkg-reconfigure --frontend nointeractive tzdata
apt install -y build-essential g++ git autoconf automake autotools-dev \
bison xxd curl flex gawk gdisk gperf libgmp-dev \
libmpfr-dev libmpc-dev libz-dev libssl-dev libncurses-dev \
libtool patchutils python screen unzip zlib1g-dev \
libyaml-dev wget cpio bc dosfstools mtools \
device-tree-compiler git-lfs kpartx \
texinfo libglib2.0-dev libpixman-1-dev \
gcc-riscv64-linux-gnu \
vim rsync
EOF
WORKDIR /vision-v2
COPY build.sh ./
COPY lvm2site.patch ./
COPY help-message ./
ENTRYPOINT exec /bin/bash -rcfile /vision-v2/help-message