First implementation
This commit is contained in:
15
Dockerfile
Normal file
15
Dockerfile
Normal file
@ -0,0 +1,15 @@
|
||||
FROM golang:alpine as builder
|
||||
|
||||
WORKDIR /go/src
|
||||
ADD . .
|
||||
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -mod=vendor -tags netgo -o /go/bin/domogeek cmd/domogeek/domogeek.go
|
||||
|
||||
|
||||
|
||||
|
||||
FROM gcr.io/distroless/static
|
||||
|
||||
USER 1234
|
||||
COPY --from=builder /go/bin/domogeek /go/bin/domogeek
|
||||
EXPOSE 8080
|
||||
ENTRYPOINT ["/go/bin/domogeek"]
|
Reference in New Issue
Block a user