us-coach-spider/Dockerfile
timerzz 30c2caabaf
Some checks failed
Build image / build (push) Failing after 8s
feat 实现抓取商品信息
2024-05-14 15:27:40 +08:00

17 lines
363 B
Docker

FROM golang as back
WORKDIR /build
COPY . /build
ARG CGO_ENABLED=0
ARG GOPROXY=https://goproxy.cn,direct
ARG GOPRIVATE=gitea.timerzz.com
ARG GONOSUMDB=gitea.timerzz.com
ARG GONOPROXY=gitea.timerzz.com
RUN go build -trimpath -ldflags '-w -s' -o product ./main
FROM alpine:latest
WORKDIR /work
COPY --from=back /build/product /work/
ENTRYPOINT ["/work/product"]