github.com/matrixorigin/matrixone@v0.7.0/optools/images/Dockerfile (about) 1 FROM golang:1.19-buster as builder 2 3 # goproxy 4 ARG GOPROXY="https://proxy.golang.org,direct" 5 RUN go env -w GOPROXY=${GOPROXY} 6 7 RUN mkdir -p /go/src/github.com/matrixorigin/matrixone 8 9 WORKDIR /go/src/github.com/matrixorigin/matrixone 10 11 COPY go.mod go.mod 12 COPY go.sum go.sum 13 14 # cache deps before building and copying source so that we don't need to re-download as much 15 # and so that source changes don't invalidate our downloaded layer 16 RUN go mod download 17 18 COPY . . 19 20 RUN make build 21 22 FROM ubuntu:latest 23 24 COPY --from=builder /go/src/github.com/matrixorigin/matrixone/mo-service /mo-service 25 COPY --from=builder /go/src/github.com/matrixorigin/matrixone/etc /etc 26 # Install some utilities used for debugging or by startup script 27 RUN apt-get update && apt-get install -y \ 28 dnsutils \ 29 curl \ 30 && apt-get clean && rm -rf /var/lib/apt/lists/* 31 32 WORKDIR / 33 34 EXPOSE 6001 35 36 ENTRYPOINT [ "/mo-service", "-launch", "/etc/quickstart/launch.toml"]