We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b971620 commit 896a19bCopy full SHA for 896a19b
.dockerignore
@@ -0,0 +1,5 @@
1
+.git
2
+.gitignore
3
+.dockerignore
4
+Dockerfile
5
+vendor
Dockerfile
@@ -0,0 +1,18 @@
+FROM golang:1.11-alpine3.8 as vendor
+WORKDIR /go/src/github.com/orisano/targd
+RUN apk add --no-cache git
+RUN wget -O- https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
+COPY Gopkg.toml Gopkg.lock ./
6
+RUN dep ensure -vendor-only && rm -rf /go/pkg/dep/sources
7
+
8
+FROM golang:1.11-alpine3.8 as build
9
10
+RUN apk add --no-cache gcc musl-dev
11
+COPY --from=vendor /go/src/github.com/orisano/targd .
12
+COPY . .
13
+RUN go build -o /bin/targd
14
15
+FROM alpine:3.8
16
+COPY --from=build /bin/targd /bin/
17
+ENTRYPOINT ["/bin/targd"]
18
0 commit comments