logging node name for important operations
terminating application when watching pods stops Dockerfile and docker compose file added. helm chart added
This commit is contained in:
+23
@@ -0,0 +1,23 @@
|
||||
|
||||
FROM alpine:3.20.3 as builder
|
||||
|
||||
RUN apk update && apk add go
|
||||
RUN mkdir -p /opt/fetcher/bin
|
||||
WORKDIR /opt/fetcher
|
||||
|
||||
ENV CGO_ENABLED=0
|
||||
ENV GOTOOLCHAIN=auto
|
||||
|
||||
COPY go.mod go.sum /opt/fetcher/
|
||||
RUN go mod download
|
||||
COPY cmd /opt/fetcher/cmd/
|
||||
|
||||
RUN go build -o bin ./cmd/...
|
||||
RUN find . -type f
|
||||
|
||||
|
||||
FROM alpine:3.20.3
|
||||
|
||||
RUN apk update && apk add ca-certificates
|
||||
COPY --from=builder /opt/fetcher/bin/fetcher /opt/fetcher/bin/
|
||||
ENTRYPOINT ["/opt/fetcher/bin/fetcher" ]
|
||||
Reference in New Issue
Block a user