feat: add signal Docker

This commit is contained in:
braginini 2021-05-05 15:48:29 +02:00
parent 682049b49c
commit 54e4e74883
2 changed files with 19 additions and 13 deletions

19
Dockerfile Normal file
View File

@ -0,0 +1,19 @@
FROM docker.io/golang:1.16 AS build
WORKDIR /src
COPY go.mod .
COPY cmd .
COPY connection .
COPY iface .
COPY signal .
COPY util .
COPY main.go .
RUN go mod download
RUN go mod tidy
RUN go install .
FROM gcr.io/distroless/base
COPY --from=build /go/bin/wiretrustee /
ENTRYPOINT [ "/wiretrustee signal" ]

View File

@ -1,13 +0,0 @@
FROM docker.io/golang:1.16 AS build
WORKDIR /src
COPY go.mod .
COPY . .
RUN go mod download
RUN go install .
FROM gcr.io/distroless/base
COPY --from=build /go/bin/wiretrustee-hub /
ENTRYPOINT [ "/wiretrustee-hub" ]