diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..163b23a --- /dev/null +++ b/Dockerfile @@ -0,0 +1,11 @@ +FROM golang:1.22.4-alpine3.20 as builder + +WORKDIR /builder +COPY . . +RUN GOPROXY=https://goproxy.cn CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o nip cmd/main.go + + +FROM alpine:3.20 +WORKDIR /app +COPY --from=builder /builder/nip . +ENTRYPOINT [ "/app/nip" ] \ No newline at end of file