aboutsummaryrefslogblamecommitdiffstats
path: root/Dockerfile
blob: 1cb068399c056dd0bd4691085f1662537c72cf1c (plain) (tree)
1
2
3
4
5
6
7
8
9



                             
                 
                                


                         
                                      
                                        

                                          
FROM alpine:3.13 as builder

RUN apk update && apk upgrade
RUN apk add go git
COPY go.* /hived/
RUN cd /hived && go mod download
COPY *.go /hived/
RUN cd /hived && go build

FROM gcr.io/distroless/static-debian10
COPY --from=builder /hived/hived /hived/
COPY ./docker-entrypoint.sh /hived/
ENTRYPOINT ["/hived/docker-entrypoint.sh"]