Skip to content

Commit

Permalink
Add Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
jrauh01 committed Nov 30, 2023
1 parent 80da387 commit 82f4c4c
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
FROM golang:alpine AS builder

RUN apk update && apk add --no-cache git
WORKDIR $GOPATH/src/icinga-kubernetes/
COPY . .
RUN go build -o /go/bin/icinga-kubernetes ./cmd/icinga-kubernetes/main.go

FROM scratch

COPY --from=builder /go/bin/icinga-kubernetes /go/bin/icinga-kubernetes
EXPOSE 8080
ENTRYPOINT ["/go/bin/icinga-kubernetes"]

0 comments on commit 82f4c4c

Please sign in to comment.