mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-08-28 10:54:59 +00:00
22 lines
397 B
Docker
22 lines
397 B
Docker
FROM golang:1.12.4 as builder
|
|
|
|
COPY . pilosa
|
|
|
|
RUN cd pilosa && CGO_ENABLED=0 make install FLAGS="-a"
|
|
|
|
FROM alpine:3.9.4
|
|
|
|
LABEL maintainer "dev@pilosa.com"
|
|
|
|
RUN apk add --no-cache curl jq
|
|
|
|
COPY --from=builder /go/bin/pilosa /pilosa
|
|
|
|
COPY LICENSE /LICENSE
|
|
COPY NOTICE /NOTICE
|
|
|
|
EXPOSE 10101
|
|
VOLUME /data
|
|
|
|
ENTRYPOINT ["/pilosa"]
|
|
CMD ["server", "--data-dir", "/data", "--bind", "http://0.0.0.0:10101"]
|