forked from cilium/tetragon
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.tarball
35 lines (24 loc) · 1.04 KB
/
Dockerfile.tarball
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
FROM cilium/tetragon:latest as tetragon-release
FROM scratch as linux-tarball-1
# Copy install script
COPY install/linux-tarball/install.sh /
COPY install/linux-tarball/uninstall.sh /
# COPY configurations
COPY install/linux-tarball/usr /usr
# Copy the systemd service into target location
COPY install/linux-tarball/systemd/tetragon.service /usr/lib/systemd/system/
# Make a copy of the systemd resources into our location
COPY install/linux-tarball/systemd /usr/local/lib/tetragon/systemd
# Our binaries
COPY --from=tetragon-release /usr/bin/tetragon /usr/local/bin/
COPY --from=tetragon-release /usr/bin/tetra /usr/local/bin/
# Helper binaries
COPY --from=tetragon-release /usr/bin/bpftool /usr/local/lib/tetragon/
# BPF files
COPY --from=tetragon-release /var/lib/tetragon /usr/local/lib/tetragon/bpf
# We need one layer
FROM scratch as linux-tarball-2
ARG TETRAGON_VERSION
ARG TARGET_ARCH
# We explicitly prefix the filesystem with tetragon-${TETRAGON_VERSION}-${TARGET_ARCH}
COPY --from=linux-tarball-1 / /tetragon-${TETRAGON_VERSION}-${TARGET_ARCH}/