cn-coach-spider/Dockerfile

17 lines
355 B
Docker
Raw Permalink Normal View History

2024-06-14 16:36:33 +08:00
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 -trimpath -ldflags '-w -s' -o run ./cmd
FROM alpine:latest
WORKDIR /work
COPY --from=back /build/run /work/
ENTRYPOINT ["/work/run"]