Download Dockerfile from pigracing/tip: direct link, hf CLI and curl.
- Browser
- Download file 880 Bytes
-
https://huggingface.co/spaces/pigracing/tip/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/pigracing/tip/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/pigracing/tip/resolve/main/Dockerfile
880 Bytes
| FROM golang:1.22-alpine AS builder | |
| WORKDIR /app | |
| RUN apk add --no-cache git ca-certificates | |
| # 如需国内代理,可取消下面两行注释 | |
| # ENV GO111MODULE=on | |
| # ENV GOPROXY=https://goproxy.cn,direct | |
| RUN git clone https://github.com/shellsec/watchvuln3.git . | |
| RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 \ | |
| go build -trimpath -ldflags="-s -w -extldflags=-static" -o main . | |
| FROM alpine:3 | |
| LABEL org.opencontainers.image.source=https://github.com/shellsec/watchvuln3 | |
| RUN apk add --no-cache tzdata ca-certificates && \ | |
| cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && \ | |
| echo "Asia/Shanghai" > /etc/timezone && \ | |
| apk del tzdata | |
| WORKDIR /app | |
| COPY --from=builder /app/main /app/main | |
| ENV DINGDING_ACCESS_TOKEN="" \ | |
| DINGDING_SECRET="" \ | |
| WECHATWORK_KEY="" \ | |
| BARK_URL="" \ | |
| INTERVAL=30m \ | |
| WEB_ADDR="0.0.0.0:7860" | |
| ENTRYPOINT ["/app/main"] |