From 54e4e74883a7070bb922500c4b5e30cb43a17a23 Mon Sep 17 00:00:00 2001 From: braginini Date: Wed, 5 May 2021 15:48:29 +0200 Subject: [PATCH] feat: add signal Docker --- Dockerfile | 19 +++++++++++++++++++ signal/Dockerfile | 13 ------------- 2 files changed, 19 insertions(+), 13 deletions(-) create mode 100644 Dockerfile delete mode 100644 signal/Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 00000000000..17b53d37589 --- /dev/null +++ b/Dockerfile @@ -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" ] diff --git a/signal/Dockerfile b/signal/Dockerfile deleted file mode 100644 index e09ad387e70..00000000000 --- a/signal/Dockerfile +++ /dev/null @@ -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" ]