mirror of
https://github.com/netbirdio/netbird.git
synced 2024-11-25 09:33:24 +01:00
20 lines
308 B
Docker
20 lines
308 B
Docker
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" ]
|