forked from bpfman/bpfman
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Containerfile.bytecode.multi.arch
67 lines (52 loc) · 1.17 KB
/
Containerfile.bytecode.multi.arch
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
## see https://go.dev/doc/install/source#environment for valid
## GOARCHes when GOOS=linux.
FROM scratch
ARG TARGETARCH
ARG TARGETOS
FROM scratch AS linux386
ARG BC_386_EL
COPY $BC_386_EL /
FROM scratch AS linuxamd64
ARG BC_AMD64_EL
COPY $BC_AMD64_EL /
FROM scratch AS linuxarm
ARG BC_ARM_EL
COPY $BC_ARM_EL /
FROM scratch AS linuxarm64
ARG BC_ARM64_EL
COPY $BC_ARM64_EL /
FROM scratch AS linuxloong64
ARG BC_LOONG64_EL
COPY $BC_LOONG64_EL /
FROM scratch AS linuxmips
ARG BC_MIPS_EB
COPY $BC_MIPS_EB /
FROM scratch AS linuxmipsle
ARG BC_MIPSLE_EL
COPY $BC_MIPSLE_EL /
FROM scratch AS linuxmips64
ARG BC_MIPS64_EB
COPY $BC_MIPS64_EB /
FROM scratch AS linuxmips64le
ARG BC_MIPS64LE_EL
COPY $BC_MIPS64LE_EL /
FROM scratch AS linuxppc64
ARG BC_PPC64_EB
COPY $BC_PPC64_EL /
FROM scratch AS linuxppc64le
ARG BC_PPC64LE_EL
COPY $BC_PPC64LE_EL /
FROM scratch AS linuxriscv64
ARG BC_RISCV64_EL
COPY $BC_RISCV64_EL /
FROM scratch AS linuxs390x
ARG BC_S390X_EB
COPY $BC_S390X_EB /
ARG TARGETARCH
ARG TARGETOS
# Use the build argument to select the correct base image
FROM ${TARGETOS}${TARGETARCH}
ARG PROGRAMS
ARG MAPS
LABEL "io.ebpf.programs"=$PROGRAMS
LABEL "io.ebpf.maps"=$MAPS