us-coach-spider/Dockerfile
timerzz 0bf6080f25
All checks were successful
Build image / build (push) Successful in 6m25s
fix 修复运行错误
2024-05-14 16:44:43 +08:00

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