forked from DelusionalOptimist/dropit
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
22 lines (17 loc) · 690 Bytes
/
Dockerfile
File metadata and controls
22 lines (17 loc) · 690 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
FROM golang:1.20 as build
RUN apt update -y; apt install -y build-essential clang libbpf-dev bpftool linux-headers-generic gcc-multilib
RUN ln -s /usr/include/x86_64-linux-gnu/asm /usr/include/asm
WORKDIR /build
ADD . .
RUN make build
# the final image
FROM debian:stable
#RUN apt update -y; apt install -y apache2
RUN apt update -y; apt install -y inotify-tools
WORKDIR /dropit
COPY scripts/entrypoint.sh /dropit/entrypoint.sh
COPY --from=build /build/bpf/vmlinux.h /dropit/vmlinux.h
COPY --from=build /build/bpf/daemon.o /dropit/daemon.o
COPY --from=build /build/dropit /dropit/dropit
COPY --from=delusionaloptimist/goserver /goserver /goserver
ENTRYPOINT ["/dropit/entrypoint.sh"]