Browse Source

[configmap-reload-arm] Initial commit

drymer 5 months ago
parent
commit
15ef3fd643
Signed by: drymer <drymer@autistici.org> GPG Key ID: A307D64D5DDFDAAD
1 changed files with 11 additions and 0 deletions
  1. 11
    0
      configmap-reload-arm/Dockerfile

+ 11
- 0
configmap-reload-arm/Dockerfile View File

@@ -0,0 +1,11 @@
1
+FROM golang:1.12-alpine as build
2
+RUN apk add -U git && git clone https://github.com/jimmidyson/configmap-reload/
3
+RUN go get github.com/fsnotify/fsnotify
4
+RUN cd configmap-reload/ && CGO_ENABLED=0 GOARCH=arm GOOS=linux go \
5
+    build --installsuffix cgo -ldflags="-s -w -extldflags '-static'" -a -o \
6
+    ./out/configmap-reload-linux-arm configmap-reload.go
7
+
8
+FROM gcr.io/distroless/base
9
+COPY --from=build /go/configmap-reload/out/configmap-reload-linux-arm /configmap-reload
10
+
11
+ENTRYPOINT ["/configmap-reload"]

Loading…
Cancel
Save