featurebase/Dockerfile
2017-10-06 16:11:33 -05:00

21 lines
423 B
Docker

FROM golang:1.9.1 as builder
ARG ldflags=''
COPY . /go/src/github.com/pilosa/pilosa
RUN cd /go/src/github.com/pilosa/pilosa \
&& make vendor \
&& CGO_ENABLED=0 go install -a -ldflags "$ldflags" github.com/pilosa/pilosa/cmd/pilosa
FROM scratch
LABEL maintainer "dev@pilosa.com"
COPY --from=builder /go/bin/pilosa /pilosa
EXPOSE 10101
VOLUME /data
ENTRYPOINT ["/pilosa"]
CMD ["server", "--data-dir", "/data"]