forked from CiscoCloud/distributive
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
25 lines (19 loc) · 894 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
FROM gliderlabs/alpine:3.2
MAINTAINER Langston Barrett <langston@aster.is> (@siddharthist)
# If this file doesn't immedately work for you, please submit a Github issue:
# https://github.com/CiscoCloud/distributive/issues
# This docker container should run and then stop immediately when the checklist
# has been completed.
# Note that Distributive doesn't have access to certain system information when
# run in a container.
RUN apk update && apk add go git && rm -rf /var/cache/apk/*
WORKDIR /gopath/src/github.com/CiscoCloud/distributive
RUN mkdir -p /gopath/{bin,src}
ENV GOPATH /gopath
ENV GOBIN /gopath/bin
ENV PATH $PATH:/gopath/bin
RUN go get github.com/tools/godep
ADD . /gopath/src/github.com/CiscoCloud/distributive
RUN go get .
RUN go build .
CMD ["distributive", "-f", "/gopath/src/github.com/CiscoCloud/distributive/samples/filesystem.json", "-d", "", "--verbosity", "info"]