Is it possible for official docker image to use alpine distribution of linux.
All the other main databases provided at a minimum an alpine version.
Alpine simply has a smaller size footprint.
For now, you could use the following Dockerfile for creating an alpine based image. We will see if it is possible to add this to official docker images.
######################
# STEP 1 build dgraph
######################
FROM golang:1.12-alpine3.9 AS builder
# build custom branch
ARG DGRAPH_BRANCH=master
# Install git
RUN apk update && apk add --no-cache git
# build dgraph binary
RUN go get -d -v github.com/dgraph-io/dgraph/dgraph
RUN cd $GOPATH/src/github.com/dgraph-io/dgraph && git checkout ${DGRAPH_BRANCH}
RUN CGO_ENABLED=0 go build -v -o /dgraph github.com/dgraph-io/dgraph/dgraph
#####################
# STEP 2 build image
#####################
FROM alpine
COPY --from=builder /dgraph /usr/local/bin/dgraph
RUN mkdir /dgraph
WORKDIR /dgraph
EXPOSE 8080
EXPOSE 9080
CMD ["dgraph"]
Possible reasons to use Alpine image -
Todo: Need to install ca-certificates in the image so that telemetry can work.
Github issues have been deprecated.
This issue has been moved to discuss. You can follow the conversation there and also subscribe to updates by changing your notification preferences.

Most helpful comment
For now, you could use the following Dockerfile for creating an alpine based image. We will see if it is possible to add this to official docker images.