-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
32 lines (23 loc) · 1.11 KB
/
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
#
# To use it, build your image:
# docker build -t glouton .
# docker run --name="glouton" --net=host --pid=host -v /var/lib/glouton:/var/lib/glouton -v /var/run/docker.sock:/var/run/docker.sock -v /:/hostroot:ro glouton
#
FROM --platform=$BUILDPLATFORM alpine:3.20 AS build
ARG TARGETARCH
COPY dist/glouton_linux_amd64_v1/glouton /glouton.amd64
COPY dist/glouton_linux_arm64/glouton /glouton.arm64
COPY dist/glouton_linux_arm_6/glouton /glouton.arm
RUN cp -p /glouton.$TARGETARCH /glouton
# We use alpine because glouton-veths needs nsenter and ip commands.
FROM alpine:3.20
LABEL maintainer="Bleemeo Docker Maintainers <packaging-team@bleemeo.com>"
RUN apk update && \
apk add --no-cache ca-certificates
COPY etc/glouton.conf /etc/glouton/glouton.conf
COPY packaging/kubernetes/glouton-k8s-default.conf /etc/glouton/glouton-k8s-default.conf
COPY packaging/common/05-system.conf /etc/glouton/conf.d/05-system.conf
COPY packaging/docker/60-glouton.conf /etc/glouton/conf.d/
COPY bin/glouton-veths /usr/lib/glouton/glouton-veths
COPY --from=build /glouton /usr/sbin/glouton
CMD ["/usr/sbin/glouton", "--yes-run-as-root"]