mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-09-05 08:10:50 +00:00
most of this is stolen from the 3.x branch for building the release artifacts I removed the restriction of only master branch, so we should be able to see if it works before the PR is merged.
29 lines
492 B
Docker
29 lines
492 B
Docker
FROM golang:latest as builder
|
|
|
|
ARG BUILD_FLAGS
|
|
ARG MAKE_FLAGS
|
|
|
|
COPY . pilosa
|
|
|
|
RUN cd pilosa && make install FLAGS="-a -mod=vendor ${BUILD_FLAGS}" ${MAKE_FLAGS}
|
|
|
|
FROM alpine:3.12.1
|
|
|
|
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
|
|
|
|
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"]
|