mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-08-28 10:54:59 +00:00
* move DD profiling/tracing setup into command where it belongs * add url to http trace, use golang for container image
32 lines
575 B
Text
32 lines
575 B
Text
ARG GO_VERSION=latest
|
|
|
|
|
|
###########################
|
|
### FeatureBase Builder ###
|
|
###########################
|
|
|
|
FROM golang:${GO_VERSION} as featurebase-builder
|
|
ARG MAKE_FLAGS
|
|
WORKDIR /fb
|
|
|
|
COPY . ./
|
|
RUN make build FLAGS="-o build/featurebase" ${MAKE_FLAGS}
|
|
|
|
##########################
|
|
### FeatureBase runner ###
|
|
##########################
|
|
|
|
FROM golang:alpine as runner
|
|
|
|
LABEL maintainer "dev@featurebase.com"
|
|
|
|
RUN apk add --no-cache curl jq tree
|
|
|
|
COPY --from=featurebase-builder /fb/build/featurebase /
|
|
|
|
COPY NOTICE /NOTICE
|
|
|
|
EXPOSE 8080
|
|
|
|
ENTRYPOINT ["/featurebase"]
|
|
CMD ["dax"]
|