mirror of
https://github.com/netbirdio/netbird.git
synced 2024-11-21 23:53:14 +01:00
feat: add signal Docker
This commit is contained in:
parent
682049b49c
commit
54e4e74883
19
Dockerfile
Normal file
19
Dockerfile
Normal 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" ]
|
@ -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" ]
|
Loading…
Reference in New Issue
Block a user