We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7c3db8f commit 8f19d39Copy full SHA for 8f19d39
Dockerfile.artifact
@@ -0,0 +1,12 @@
1
+FROM golang:1.10.0-alpine as vdcAgent
2
+RUN apk update && apk add git && \
3
+ go get -u github.com/golang/dep/cmd/dep && \
4
+ go get -d github.com/DITAS-Project/VDC-Logging-Agent && \
5
+ cd src/github.com/DITAS-Project/VDC-Logging-Agent && \
6
+ dep ensure && \
7
+ CGO_ENABLED=0 go build -a --installsuffix cgo --ldflags="-w -s -X main.Build=$(git rev-parse --short HEAD)" -o vdc-agent
8
+
9
+FROM alpine:3.4
10
+COPY --from=vdcAgent /go/src/github.com/DITAS-Project/VDC-Logging-Agent/vdc-agent
11
+EXPOSE 8484
12
+CMD [ "./vdc-agent" ]
0 commit comments