Added initial Dockerfile and docker target

This commit is contained in:
Yuce Tekol 2017-02-03 17:37:44 +03:00
parent c2253a36ea
commit 741c073dd0
2 changed files with 14 additions and 0 deletions

11
Dockerfile Normal file
View file

@ -0,0 +1,11 @@
FROM scratch
MAINTAINER Pilosa Corp. <engineering@pilosa.com>
ENV DATA_DIR /data
EXPOSE 15000
VOLUME /data
COPY ./pilosa /pilosa
ENTRYPOINT ["/pilosa"]

View file

@ -5,3 +5,6 @@ default:
vendor:
godep save ./...
cp -r $(GOPATH)/src/github.com/gogo/protobuf/proto/testdata vendor/github.com/gogo/protobuf/proto/testdata
docker:
CGO_ENABLED=0 go build github.com/pilosa/pilosa/cmd/pilosa && docker build -t pilosa:latest .