shadow-up: New package
This commit is contained in:
parent
32f17d9b4b
commit
92a90078cf
7 changed files with 190 additions and 0 deletions
20
pkg/shadow-up/Dockerfile
Normal file
20
pkg/shadow-up/Dockerfile
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
FROM golang:1.17-alpine3.15 as gobuild
|
||||
|
||||
ENV GOOS linux
|
||||
ENV GOARCH amd64
|
||||
|
||||
RUN apk add --no-cache git gcc
|
||||
|
||||
WORKDIR /go/src/shadow-up
|
||||
|
||||
ADD cmd ./
|
||||
|
||||
RUN go build -v -ldflags="-s -w" -tags netgo -o shadow-up
|
||||
|
||||
|
||||
FROM alpine:3.15
|
||||
MAINTAINER Pierre-Olivier Mercier <nemunaire@nemunai.re>
|
||||
|
||||
COPY --from=gobuild /go/src/shadow-up/shadow-up /bin/shadow-up
|
||||
|
||||
ENTRYPOINT ["/bin/shadow-up"]
|
||||
Reference in a new issue