-
-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathDockerfile
More file actions
39 lines (39 loc) · 1.01 KB
/
Copy pathDockerfile
File metadata and controls
39 lines (39 loc) · 1.01 KB
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
34
35
36
37
38
39
#
# Submarine build env
#
# build docker image:
# podman build -t submarine/buildenv .
#
# run:
# podman run --rm -v ".:/submarine" submarine/buildenv #x86_64 build (default)
# podman run --rm -v ".:/submarine" submarine/buildenv make -j$(nproc) arm64 #arm64 build
# podman run --rm -v ".:/submarine" submarine/buildenv make clean #clean
#
FROM fedora-minimal:latest
RUN dnf install -y --nogpgcheck --repofrompath 'terra,https://repos.fyralabs.com/terra$releasever' terra-release && \
dnf update -y && dnf install -y \
awk \
bc \
bison \
ccache \
depthcharge-tools \
elfutils-devel \
flex \
gcc \
gcc-aarch64-linux-gnu \
golang \
make \
openssl-devel \
openssl-devel-engine \
patch \
parted \
perl \
tar \
uboot-tools \
vboot-utils \
xz \
&& rm -rf /var/cache/libdnf5/*
RUN go install github.com/u-root/u-root@latest
ENV PATH="/root/go/bin:${PATH}"
WORKDIR /submarine
CMD make -j$(nproc) x86_64