us-coach-spider/Dockerfile
timerzz 1aa69c628d
Some checks failed
Build image / build (push) Failing after 5m48s
fix 修改golang镜像
2024-05-14 21:52:30 +08:00

17 lines
356 B
Docker

FROM golang:1.22 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 -o run -trimpath -ldflags '-w -s' ./cmd
FROM alpine:latest
WORKDIR /work
COPY --from=back /build/run /work/
ENTRYPOINT ["/work/run"]