FROM golang:1.20.7 as builder WORKDIR /go/src/joylink.club/bj-rtsts-server COPY ./* ./ RUN go build -o bj-rtsts-server FROM scratch WORKDIR /bj-rtsts COPY --from=builder bj-rtsts-server . CMD [ "bj-rtsts-server" ]