github.com/jartcoin/go-jartdiuma@v0.0.0-20210708013502-b71bfe42bfc3/Dockerfile (about) 1 # Build Gjart in a stock Go builder container 2 FROM golang:1.12-alpine as builder 3 4 RUN apk add --no-cache make gcc musl-dev linux-headers git 5 6 ADD . /go-jartdiuma 7 RUN cd /go-jartdiuma && make gjart 8 9 # Pull Gjart into a second stage deploy alpine container 10 FROM alpine:latest 11 12 RUN apk add --no-cache ca-certificates 13 COPY --from=builder /go-jartdiuma/build/bin/gjart /usr/local/bin/ 14 15 EXPOSE 7864 7865 33360 33360/udp 16 ENTRYPOINT ["gjart"]