forked from AOEpeople/vistecture
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
16 lines (15 loc) · 766 Bytes
/
Dockerfile
File metadata and controls
16 lines (15 loc) · 766 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
FROM golang:1.11 as build
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go get -u github.com/gobuffalo/packr/v2/packr2
RUN mkdir -p /go/src/github.com/intercloud/
COPY . /go/src/github.com/intercloud/vistecture
RUN cd /go/src/github.com/intercloud/vistecture && CGO_ENABLED=0 GOOS=linux GOARCH=amd64 GO111MODULE=on go mod vendor
RUN cd /go/src/github.com/intercloud/vistecture && CGO_ENABLED=0 GOOS=linux GOARCH=amd64 packr2 -v
RUN cd /go/src/github.com/intercloud/vistecture && CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build .
RUN ls -al /go/src/github.com/intercloud/vistecture
FROM alpine:3.7
RUN apk add --no-cache \
graphviz \
font-bitstream-type1 \
inotify-tools \
tini
COPY --from=build /go/src/github.com/intercloud/vistecture/vistecture /usr/local/bin