mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-08-28 10:54:59 +00:00
31 lines
586 B
Docker
31 lines
586 B
Docker
FROM golang:1.14.10 as builder
|
|
|
|
ARG BUILD_FLAGS
|
|
ARG MAKE_FLAGS
|
|
|
|
COPY . pilosa
|
|
|
|
RUN cd pilosa && make install FLAGS="-a -mod=vendor ${BUILD_FLAGS}" ${MAKE_FLAGS}
|
|
|
|
FROM ubuntu:20.10
|
|
|
|
LABEL maintainer "dev@pilosa.com"
|
|
|
|
RUN apt-get update
|
|
## debug image: RUN apt-get install -y curl htop vim golang tree jq netcat
|
|
RUN apt-get install -y curl jq
|
|
|
|
COPY --from=builder /go/bin/pilosa /pilosa
|
|
|
|
COPY LICENSE /LICENSE
|
|
COPY NOTICE /NOTICE
|
|
|
|
EXPOSE 10101
|
|
VOLUME /data
|
|
|
|
ENV PILOSA_DATA_DIR /data
|
|
ENV PILOSA_BIND 0.0.0.0:10101
|
|
ENV PILOSA_BIND_GRPC 0.0.0.0:20101
|
|
|
|
ENTRYPOINT ["/pilosa"]
|
|
CMD ["server"]
|