github.com/Asutorufa/yuhaiin@v0.3.6-0.20240502055049-7984da7023a0/cmd/yuhaiin/Dockerfile (about) 1 FROM docker.io/library/golang:alpine as builder 2 3 WORKDIR /yuhaiin 4 5 COPY . . 6 7 RUN set -x\ 8 && apk add --no-cache make git\ 9 && make yuhaiin 10 11 FROM docker.io/library/alpine:latest 12 13 WORKDIR /yuhaiin 14 15 COPY --from=builder /yuhaiin/yuhaiin /yuhaiin/yuhaiin 16 17 ENTRYPOINT ["/yuhaiin/yuhaiin"]